We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.

Forum Discussion

timrobinson33's avatar
timrobinson33
Helpful | Level 5
2 years ago

file downloads have wrong content-type header

Hello,   I'm testing out dropbox v2 files api. when I call "POST https://content.dropboxapi.com/2/files/download" API, the downloaded file seems to be always returned with the content-type header...
  • Greg-DB's avatar
    2 years ago

    Receiving a 'Content-Type: application/octet-stream' response header on a successful /2/files/download call is the expected behavior.

     

    The Dropbox API doesn't return specific mime types for files, but you can get the file extension from the file name and keep your own file extension to mime type mapping as desired.