Your workflow is unique 👨‍💻 -  tell us how you use Dropbox here.

Forum Discussion

fstotz's avatar
fstotz
Explorer | Level 4
8 years ago

Re: Can't open file, which i have download from Dropbox using direct download link.

Hello,

 

the issue here is that the header "content-type" seems broken on the webpage since this week.

It is set to "application/binary" for all file types.

This is the reason that the android dowloadmanager can't open any more downloaded files from shared dropbox links.

Below you will find an example get sent by Postman, where the content-type is clearly wrong.

This was for an PDF but I realiced the same issue with a text file and an apk file.

Could you please inform your development that they broke something with their last update for the webpage last weekend?

 

Regards

postman

3 Replies

  • sdouglasaz's avatar
    sdouglasaz
    New member | Level 2
    8 years ago
    Saved me, thanks! We depended on accurate content-type too from dl=1 flag.
  • msegado's avatar
    msegado
    New member | Level 2
    8 years ago

    FYI, this is still broken, at least when trying to download PDF files on Android 8. PDFs shared via links with"dl=0" or "dl=1" download to the device but give a "can't open file" error when I try to open them. The also have a generic icon instead of a PDF icon in the file viewer, so I'm guessing Android is storing the Content-Type type of the download as metadata somewhere. (Emailing the downloaded file fixes it, I assume because the Gmail corrects the Content-Type in the process.)

About Dropbox API Support and Feedback

Node avatar for Dropbox API Support and Feedback
Get help with the Dropbox API from fellow developers and experts.

The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.

If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.

For more info on available support options for your Dropbox plan, see this article.

If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!