We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Ranjodh S.
11 years agoNew member | Level 1
Error 4xx while downloading a file through API which has second word's intials H for eg. (DX Haley)
We are using Dropbox API with Oauth 2.0 to download a file, Its giving us the Error 4xx page. The name of the file is 'DX Haley'. It happens only when the second word in the file name start with let...
Steve M.
Dropbox Staff
11 years agoTo clarify what Greg said, a space is not an allowed character in a URL. If your code is sending URLs with unescaped spaces in them, then you have a bug, which I'd strongly encourage you to fully fix. If all you did was special-case this one character (a space), you're quite likely to run into more issues when you have URLs with other disallowed characters like question marks, hash signs, parentheses, etc. It's true that some services (including ours) will try to guess at the meaning of the invalid URL you're sending, but relying on this seems like a bad idea.
See RFC 2396 for the details on how URLs needs to be escaped, but also consider just using the java.net.URI class, which I believe will handle all the escaping for you.
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!