We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
flashbackproduc
8 years agoHelpful | Level 5
direct download link - mobile phone
hi, i am using the api to upload movies with MP4 extantion.
and using DIRECT download links (DL=1) to download them.
when i download the links in a desktop computer, it saves the file with the orginal filename and the MP4 extantion.
but when i am using the link with a mobile phone (i tried several phone android) it saves the filename as "file" with no extantion. the phone cant read it bcz it extantion is missing.i have to rename the file on the phone and only then, the movie will play.
how can i fix this? where is the prob? on the android phone or in the download link?
thank you.
1 Reply
- Greg-DB8 years ago
Dropbox Community Moderator
When returning files via shared links with the dl=1 parameter, the Dropbox web servers issue a redirect to a URL that does end in 'file', with the actual file name included in the 'content-disposition' response header. I just tried this and confirmed it is working as expected.
Clients should automatically follow that redirect and get the filename from the 'content-disposition' header. It sounds like your mobile client is unfortunately not doing so. We don't control your client's behavior though, so I'm afraid I can't offer help on that side.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
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!