get https://{cdn}.{filespin}.{io}/api/v1/assets//conversions?delivery=
Deliver downloadable ODI
In some cases, it may be necessary to provide the users automatic downloads of ODI.
These options allow you to set additional URL parameters that sets Content-Disposition
HTTP headers such that when user accesses the URL via a browser, the image transformation downloads to their device as a file with appropriate extension.
Note that these parameters are in addition to other transformation parameters.
The parameters are described below:-
Parameter | Description |
---|---|
delivery | Set this to download |
dl_prefix | Set this to the name of the download file without the extension |
format | Mandatory parameter for image downloads to set the format of the file. Do not set this if already set via format option |
Example downloadable image URL
The URL below will download a 300x300 image transformation called testimage.jpg
to user's device.
<<CDN_HOST>>/api/v1/assets/0c3c6d026858460abc4de1dcb4de15ac/conversions?resize=300,300&delivery=download&dl_prefix=testimage&format=jpg