Search code examples
dropbox

File upload failed while uploading into dropbox in iOS in CoreApI


I'm failing to upload files into dropbox in iOS in CoreApI

I'm getting this message

[WARNING] DropboxSDK: error making request to /1/files_put/sandboxsandbox/helloworld.txt - (400) Expected 'root' to be 'dropbox', 'sandbox', or 'auto', got u'sandboxsandbox' 2013-12-04 18:23:57.348 DropBoxCore[4914:907] File upload failed with error - Error Domain=dropbox.com Code=400 "The operation couldn’t be completed. (dropbox.com error 400.)" UserInfo=0x22b1d7f0 {sourcePath=/var/mobile/Applications/28B2865A-58BC-4DC8-8E61-7F40307DDC56/DropBoxCore.app/helloworld.txt, destinationPath=sandbox/helloworld.txt, error=Expected 'root' to be 'dropbox', 'sandbox', or 'auto', got u'sandboxsandbox'}

Could someone please help me, I have searched for this, but couldn't find any solutions for this problem.


Solution

  • It would help if you shared your code, but my guess is that your passing in a path like sandbox/helloworld.txt and should instead pass /helloworld.txt. If that's not it, please do share your code.