Data Types

File Sources External HTTP URL

Optimize and process files hosted elsewhere by creating an "External HTTP URL" file source.

Benefits

Process files hosted elsewhere.

Optimize images to reduce page load times.

Learn about: Edge Caching, Permanent Caching, and Image Optimization to reduce page load times.

Limitations

Requests to transform files from external HTTP URLs may incur additional latency due to internal download operations:

  • Video and audio transformations will incur an additional latency of ~1 second per 75MB of input file size when using external HTTP URLs.*

  • Image transformations from external HTTP URLs do not incur latency: the performance is the same as using Upload's Built-in Storage.

*

Applies to the first request only: once the result is cached all subsequent requests to the same URL will return near-instantly.

Let's get started...

Upload supports two options:

With a base URL (recommended)

To process files from a fixed base URL:

  1. Create a folder in the Upload Dashboard.

  2. Edit the folder's settings.

  3. Click on "Storage Settings".

  4. Change "Storage Type" to "External HTTP URL".

  5. For "Use a Base URL" select "Yes"

  6. Enter the base URL to fetch files from.

  7. Click on "Save Changes". (Don't forget this step before continuing!)

  8. Try it out:

    1. Copy the "Example CDN URL" from the form.

    2. Replace "example.jpg" with a relative path you want to fetch from the underlying URL.

    3. To process the file, try using the Image Processing API.

Without a base URL

To process files from any URL at runtime:

  1. Create a folder in the Upload Dashboard.

  2. Edit the folder's settings.

  3. Click on "Storage Settings".

  4. Change "Storage Type" to "External HTTP URL".

  5. For "Use a Base URL" select "No"

  6. Click on "Save Changes". (Don't forget this step before continuing!)

  7. Try it out:

    1. Copy the "Example URL" from the form.

    2. Replace "https://assets.upload.io/example.jpg" with a URL you want to fetch.

    3. To process the file, try using the Image Processing API.

For reference, the "Storage Settings" section of the "Folder Settings" page is shown below:

Configuring an AWS S3 bucket

Next steps

These pages may also be helpful:

Was this section helpful? Yes No

You are using an outdated browser.

This website requires a modern web browser -- the latest versions of these browsers are supported: