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...
codingnightmare
7 years agoExplorer | Level 4
I want the user to download the file from dropbox by adding a parameter or http header to the link and get the file with the new name, not through another server or rename it locally. I want dropbox to download the file with new name that I will pass in content-disposition headers or other params. I really need this functionality :(
Well, with in active storage, we never stores the files with their real name. We just name it with some unique number or id and we stores the real name in our database. So what we really want, we want a way to pass a the real name in some header or parameters and it will use this name for the file directly at dropbox for downloading it. And will not affect the file.
Well, with in active storage, we never stores the files with their real name. We just name it with some unique number or id and we stores the real name in our database. So what we really want, we want a way to pass a the real name in some header or parameters and it will use this name for the file directly at dropbox for downloading it. And will not affect the file.
codingnightmare
7 years agoExplorer | Level 4
Greg, If you will check these links then you will realise that what I am exactly looking for:
Similar think is possible at GCS:
https://stackoverflow.com/questions/21026132/google-cloud-storage-download-a-file-with-a-different-name
Similar thing is possible with S3:
https://stackoverflow.com/questions/2611432/amazon-s3-change-file-download-name/2612795#2612795
Thanks
Similar think is possible at GCS:
https://stackoverflow.com/questions/21026132/google-cloud-storage-download-a-file-with-a-different-name
Similar thing is possible with S3:
https://stackoverflow.com/questions/2611432/amazon-s3-change-file-download-name/2612795#2612795
Thanks
- Greg-DB7 years ago
Dropbox Community Moderator
I see, thanks for clarifying. Dropbox unfortunately doesn't offer an option for setting the download name like that.
- codingnightmare7 years agoExplorer | Level 4Oh, 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- 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.
- spotloader4 years agoExplorer | Level 3
Do you know when this feature will be available?
- Greg-DB4 years ago
Dropbox Community Moderator
spotloader This feature request was filed with the team, but I don't see any plans to implement it currently.
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!