cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
What’s new: end-to-end encryption, Replay and Dash updates. Find out more about these updates, new features and more 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: 

[Help] Cannot download file if the file name has spaces

[Help] Cannot download file if the file name has spaces

catinlonelywind
New member | Level 2

when i use download API, it works well if download FileName does not has space.

 

But return eroor 400 if download FileName has space such as "a   b.png",

 

it says

`Something went wrong. Don't worry, your files are still safe and the Dropboxers have been notified.`
3 Replies 3

Greg-DB
Dropbox Staff

It sounds like you're not properly encoding the value in the 'Dropbox-API-Arg' header. Please refer to this page information on doing so: https://www.dropbox.com/developers/reference/json-encoding

jundervaber
Explorer | Level 3

This is strange -- it used to not do this -- it just started for me today. I worked-around the problem by renaming the file to remove spaces or replace them with underscores, and I was able to open PDFs in Edge.

 

 

 

 

 

snaptube  vidmate 

Greg-DB
Dropbox Staff

@jundervaber This thread was about interacting with the developer interface for Dropbox. If you're running in to any issues with the Dropbox product itself, you can open a thread in the " Help from the Community" section.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropbox Staff
  • User avatar
    jundervaber Explorer | Level 3
What do Dropbox user levels mean?