I do requesto to https://api.dropbox.com/1/media/dropbox/{FILE_ID}
to retrieve preview URL of a PDF file, then I do GET request on the URL, returned by previous API call, and I receive content-disposition:attachment; filename="{FILE_NAME}"
header in the response which forces browser to download a PDF instead of previewing it.
The flow was working fine some time ago and I have been using ?dl=1
to force a download. Did the Dropbox API changed somehow? How do I force preview instead of download?