在CoreApI中将文件上传到iOS中的保管箱时文件上传失败 [英] File upload failed while uploading into dropbox in iOS in CoreApI

查看:66
本文介绍了在CoreApI中将文件上传到iOS中的保管箱时文件上传失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法在CoreApI中将文件上传到iOS的保管箱中

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

我收到此消息

[警告] DropboxSDK:向
/1/files_put/sandboxsandbox/helloworld.txt发送请求时出错-(400)预期
的 root为 dropbox, 'sandbox'或'auto',得到了u'sandboxsandbox'2013-12-04
18:23:57.348 DropBoxCore [4914:907]文件上传失败,出现错误-
Error Domain = dropbox.com代码= 400无法完成
操作。(dropbox.com错误400。) UserInfo = 0x22b1d7f0
{sourcePath = / var / mobile / Applications / 28B2865A-58BC-4DC8-8E61- 7F40307DDC56 / DropBoxCore.app / helloworld.txt,
destinationPath = sandbox / helloworld.txt,错误=预期'root'为
'dropbox','sandbox'或'auto',得到u' sandboxsandbox'}

[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.

推荐答案

如果您共享代码,这会有所帮助,但我的猜测是,您在 sandbox / helloworld.txt ,而应该传递 /helloworld.txt 。如果不是那样,请共享您的代码。

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.

这篇关于在CoreApI中将文件上传到iOS中的保管箱时文件上传失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆