cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you interested in hearing how one of our Community members uses Dropbox for sailing trips? Read all about it here.

Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

bug(?) in content-disposition response header

bug(?) in content-disposition response header

Anthony B.14
New member | Level 1

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_w9t... | grep content-disposition

content-disposition: attachment; filename=purse_red.jpeg
```

2 Replies 2

Greg-DB
Dropbox Staff

Thanks for the report! This is a known issue that should be fixed soon.

Greg-DB
Dropbox Staff

This should be fixed now. Please let me know if you're still seeing any issues.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?