Downloads a file in its original/unprocessed state.
Changed onDownloads a file in its original/unprocessed state.
Request
- Base URLhttps://upcdn.io
- Auth
- API key in header Authorization
- or none
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
Absolute path to a file. Begins with a /.
Query parameters
Specifies whether to cache the raw file in the Bytescale CDN.
Default: true
Specifies the maximum amount of time, in seconds, the file will be cached on the user's device and in the Bytescale CDN's edge cache.
Default: Please refer to your account's default cache settings in the Bytescale Dashboard.
Specifies the maximum amount of time, in seconds, that 404 responses will be cached in the Bytescale CDN's edge cache.
Default: Please refer to your account's default cache settings in the Bytescale Dashboard.
Expires the URL at the given time.
Accepted values:
-
An integer (in milliseconds or seconds since January 1, 1970, 00:00:00 UTC)
-
The literal string inf to indicate that the URL should never expire (the default)
See: Expiring URLs
Downloads the latest version of your file (if you have overwritten it) when added to the URL with a unique value.
The value of the version parameter can be anything, e.g. an incremental number, a timestamp, etc.
You only need to provide and update this value if/when you overwrite your file.
Response
Success.
Changes
- warning
deleted the
queryrequest parametercache_ttl - info
added the new optional
queryrequest parametercache-ttl - info
added the new optional
queryrequest parametercache-ttl-404 - info
added the new optional
queryrequest parameterexp
- warning