We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Anthony B.14
10 years agoNew member | Level 1
bug(?) in content-disposition response header
Hi,
I'm a developer attempting to use APIv2 to make a web integration. Currently, I'm on rails trying to use the method /get_temporary_link to get a link to upload a file as a paperclip asset (using the very popular thoughtbot/paperclip gem).
Having some issues and I noticed the `filename` in the `content-disposition` response header is not being returned as a quoted string, e.g.
According to RFC 2616 (https://tools.ietf.org/html/rfc2616#section-19.5.1) the filename parameter should be a quoted string. Essentially:
THIS IS CORRECT
Content-Disposition: attachment; filename="purse_red.jpeg"
THIS IS NOT CORRECT (AND CURRENT IN APIv2)
Content-Disposition: attachment; filename=purse_red.jpeg
Is this a tiny bug we can show some love? =P
Cheers
epylinkn
CURL example in case it helps:
```
$ curl -I https://dl.dropboxusercontent.com/apitl/1/AABEjWHkjnPKJ0NrtkvkFYXotbSY_-0yZCchBZ-fvbD3dX3R05MALM_w9trebEG-2nNaYLUcOXp3BGFafuGBHvxnMMEGyUkQn6vH8T0AQesOMnkr3QkWzFPiPeHjG6QvXW41aGQYa9gWWypNoyr6X63bhJiw-nNLIq0tuqp4IB8ifBz-JaXK3zalY_Lhc4f4hTtbGatHftuKI5ZV9asdoD1RjgXpjnAnceqp3opC--A60fMmCoeeY3Y_ZOVzZMX-3bo | grep content-disposition
content-disposition: attachment; filename=purse_red.jpeg
```
2 Replies
- Greg-DB10 years ago
Dropbox Community Moderator
Thanks for the report! This is a known issue that should be fixed soon.
- Greg-DB10 years ago
Dropbox Community Moderator
This should be fixed now. Please let me know if you're still seeing any issues.
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!