We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
codingnightmare
7 years agoExplorer | Level 4
Content-Disposition in dropbox
Is there a way to rename a file while downloading from dropbox without changing the filename itself : For example: Dropbox link : https://www.dropbox.com/s/b06pn1n7w75ihyz/270px-July_Morning_Boby_D...
Greg-DB
Dropbox Community Moderator
7 years agoI see, thanks for clarifying. Dropbox unfortunately doesn't offer an option for setting the download name like that.
codingnightmare
7 years agoExplorer | Level 4
Oh, I had thought that DROPBOX allows passing custom-disposition attributes i.e name with in headers for downloading the file with any name required. It was required for my one of the important project that was the part of Ruby On Rails ActiveStorage module. It will create big problem for us because we don’t want to save real file name there at storage providers, we want to keep the real name in our database. We are just using some random unique number for the file names.
At the moment, we are using AWS S3, GCS and AZURE storage providers for storing and delivery files with Rails ActiveStorage.
We thought of using Dropbox too but it’s one the key feature for the security of using content-disposition headers to download file with any name not supported by dropbox.
Is there any chances to develop it ? I can help as well. It’s one of the important key feature that will be widely be useful for bulk of developer whoever using dropbox and want to use custom-disposition headers. And will also help Rails Community as we want to use dropbox as a ActiveStorage storage provider :) I am happy to discuss more.
Thanks,
Ashish Prajapati
CEO, Clecotech | Rails Contributor
At the moment, we are using AWS S3, GCS and AZURE storage providers for storing and delivery files with Rails ActiveStorage.
We thought of using Dropbox too but it’s one the key feature for the security of using content-disposition headers to download file with any name not supported by dropbox.
Is there any chances to develop it ? I can help as well. It’s one of the important key feature that will be widely be useful for bulk of developer whoever using dropbox and want to use custom-disposition headers. And will also help Rails Community as we want to use dropbox as a ActiveStorage storage provider :) I am happy to discuss more.
Thanks,
Ashish Prajapati
CEO, Clecotech | Rails Contributor
- Greg-DB7 years ago
Dropbox Community Moderator
I'll pass this along as a feature request. I can't promise if or when that might be implemented though, so I recommend trying to accomplish this locally instead.
- codingnightmare7 years agoExplorer | Level 4Ok, I will ask the same with Rails Core Team and will discuss that, it’s better to store the files with real name directly at dropbox and will create the folders with unique number for identifying the path etc. i.e 356663/ashish.jpg in place of 35663 only :)
I will release the new version of ‘activestorage-dropbox gem’ with this small improvement so at least end users can see the real name after downloading the file.
I will also wait for you so if there will be any news about implementing the Content-disposition support by Dropbox then it will really help me and other bulk of developers those need the same. I checked the stackeoverflow and lots of developer asking for the same kind of thing with Dropbox
Thanks for your time Greg :)
Have a nice day ;)
Ashish P.
About Discuss Dropbox Developer & API
Make connections with 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!