Download File

The download file call can be used to download a single asset using the assetId. When using the downloadFile API from a webpage, we suggest opening a new tab or window with the URL. The user's browser will then automatically download the file while staying on your page.

Endpoint

								
									https://brandisty.com/downloadFile
								
							

Attributes

id &id=[assetId]
The id of the asset to download.
format &format=[png, jpg or eps]
The format of the asset to be downloaded. Can be eps, jpg, or png
w &w=[pixel width]
For jpg and png, the constraining width. Images will fit within this width constraint while maintaining their aspect ratio.
h &h=[pixel height]
For jpg and png, the constraining height. Images will fit within this height constraint while maintaining their aspect ratio.

Example

								
									https://cdn.brandisty.com/downloadFile?id=52796d1a058517d430000020&format=jpg&w=200&h=200