Storage: File Management: FileDownload
File download
Filedownload uses the storageApiUrl which can be retrieved from any FileserverInfo.
Authentication Methods
- With a username and password
Input Parameter | Type | Description |
---|---|---|
Token | String | Security token |
FileServerName | String | FileServer name |
Path | String | Filename of the file to upload |
Embed | Boolean | Default: false. If set to false, headers will be set to force the browser to download the file |
Response | Type | Description |
---|---|---|
Contents | Byte[] | The binary contents of the file |
EXAMPLES
curl 'http://storage.example.com/storage/api.php?Token=fmtee0i5mqriisml2t1rrfs2h0&Task=FileDownload&FileserverName=nmsa000010&Path=abc.txt'
RESPONSE
Normally you’ll receive the data, however in case of an error we return the following familiar format:
<Response>
<Status>3013</Status>
<Message></Message>
</Response>