We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Vivek K.2
10 years agoNew member | Level 1
Unable to Upload the File into DropBox From Salesforce Using /Files_put API ?
Hi All,
I tried to upload the file into Drop Box account From Salesforce Using /files_put Dropbox Api.But am always getting following Error : [Status=Bad Request, StatusCode=400]{"error": "B...
Greg-DB
Dropbox Community Moderator
10 years ago[Cross-linking for reference: https://stackoverflow.com/questions/36997863/unable-to-upload-the-file-into-dropbox-from-salesforce-using-files-put-api ]
I don't have any sample code for Apex specifically unfortunately.
I see you've updated your code to set the OAuth 2 access token. It looks like you're encoding it though? It shouldn't be encoded, and should just be passed up to the API as the original string.
By the way, I redacted your access token, but you should revoke it to be safe since you posted it publicly.
Have you been able to troubleshoot the your code.HTTP client to check what data it is or isn't actually sending up?
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!