Hi,
I'm a developer using the dropbox API to make a web integration.
I need to download a file using the api, but the options that I've found are not completely satisfactory for me:
I'm currently using the method /get_temporary_link to get a link to download the file. But the "downloaded" file has some issues:
- The file name is not the expected file name (is just a big random name)
- If the browser can manage the extension --> The browser shows the file instead of downloading it (images, txts, html, ...)
- I just noticed that the following header is missing in the response from the temporary link generated:
Content-Disposition: attachment; filename="fileName.jpg"
I've already been investigating other options like /create_shared_link
But I can't set the expires property because I'm a regular user (only allowed for business users), and not setting this expires time will be a security issue for my application.
Is there an alternative to do what I expect in the current API? (just be able to download allways a file)
If not, is the missing header from temporary link a real bug? Or is something done on purpose?
Regards,
Jaume