Question

I want to have a link to download a file from Dropbox that prompts the user instead of displaying the file in the browser. This probably requires setting a content-disposition header to 'attachment'.

I'm currently using the dropbox media URL as described here:

https://www.dropbox.com/developers/reference/api#media

It seems my alternative might be to create a proxy, but I'd obviously like to avoid that.

Is there a way to get this behavior from a direct Dropbox link?

Was it helpful?

Solution

Found the answer myself.

As documented here:

https://www.dropbox.com/help/201

just add dl=1 to the URL.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top