- Direct upload (three-step process): Create an upload session, upload file bytes to a pre-signed URL, then complete the upload.
- URL upload (single step): Provide a source URL and Glide will download and store the file for you.
Option 1: Direct Upload
Create an upload session and get a pre-signed upload URL. Upload the file bytes to theuploadLocation, then call the complete endpoint to finalize the file and receive a public URL.
Example
uploadLocation:
Option 2: URL Upload
Provide asourceURL and Glide will download the file and upload it directly. This completes in a single API call and returns the final URL immediately.
Example
Optional Parameters
You can optionally override the filename and content type:Content-Disposition header, and the content type is taken from the response headers.
Note that Glide will delete this file within 30 days if the URL is not stored in a table in Glide.