cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Back again with another edition of 'How we use Dropbox', so find out how Emma uses to-do lists to get it all done 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: 

Content-Type charset on safari and firefox

Content-Type charset on safari and firefox

Ge Y.
New member | Level 2

Hi, I'm trying to make a call to API V2 via the browser. Here in the spec you wrote 

> - Set the Content-Type to "text/plain; charset=dropbox-cors-hack" instead of "application/json" or "application/octet-stream".

I tried doing this. It works on Chrome, but it somehow does not work on safari and Firefox. 

In both firefox and safari, the browser seems to overwrite the supplied charset, and uses `UTF-8` for the XHR instead. 

This truly made me sad T_T. Are you guys familiar with this situation?

Thanks!

4 Replies 4

Re: Content-Type charset on safari and firefox

Alexandra F.1
New member | Level 1

Hi Ge - thanks for reporting. I think this is a bug in Firefox. See this StackOverflow post: https://stackoverflow.com/questions/33902289/using-dropbox-v2-api-from-browser . We haven't had reports about this happening in Safari yet. Is it the exact same error? If not, can you share the code and output, so I can try to reproduce on my side?

Re: Content-Type charset on safari and firefox

Ge Y.
New member | Level 2

Hey Alex, 

 

I think it is exactly the same error in safari. Aka the charset gets re-written by the browser.

 

Ge

Re: Content-Type charset on safari and firefox

Alexandra F.1
New member | Level 1

Thanks for the report. I'll look into it.

Re: Content-Type charset on safari and firefox

Greg-DB
Dropboxer

I'm not seeing this in Safari. Can you share some code to reproduce the issue? Also, please let us know what version of Safari you're using.

Also, if you are seeing it in Safari, doe the answer at http://stackoverflow.com/a/34168434/1305693 help? 

Thanks in advance! 

Poll
We love to learn from the educators who use Dropbox. Whether you teach kids, teens, adults or a combination of all three, we want to know what apps and integrations you use with Dropbox to help with teaching. Which of the ones below is your favorite, or most used tool?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
  • User avatar
    Alexandra F.1 New member | Level 1
  • User avatar
    Ge Y. New member | Level 2
What do Dropbox user levels mean?
Need more support?