Dropbox核心API - 上传之前的1021错误 - 仅在iOS 5及以下版本中 [英] Dropbox Core API - 1021 error before upload - only in iOS 5 and below
问题描述
错误提出请求到/1/files_put/sandbox/abc.xyz - (-1021)Error Domain = NSURLErrorDomain Code = -1021操作无法完成(NSURLErrorDomain错误-1021。)UserInfo = 0x28af00 {destinationPath = / abc.xyz,sourcePath = / var / mobile / Applications / FB0373C9 -... C4F0874D40 / Documents / abc.xyz}
-1021错误代码通常出现在上传时验证失败的情况。这也是上传后的文件。
但是这一次甚至在上传开始之前就出现了。
我尝试了loadMetadata:API,它工作正常,并且返回元数据。 b
$ b
在安装了最新iOS的2台设备上,dropbox上传工作正常。
我尝试更新到最新的SDK,但即使这样也行不通。
它可以在iOS5.6中正常工作,从 Dropbox论坛
你也可以从这里
I integrated dropbox core API with two of my iOS apps. Successfully. A few weeks ago, it was working fine. But now when I run those apps on devices with iOS 5.0 or iOS 4.2, and try to call the uploadFile: API, I get this error:
error making request to /1/files_put/sandbox/abc.xyz - (-1021) Error Domain=NSURLErrorDomain Code=-1021 "The operation couldnÕt be completed. (NSURLErrorDomain error -1021.)" UserInfo=0x28af00 {destinationPath=/abc.xyz, sourcePath=/var/mobile/Applications/FB0373C9-...C4F0874D40/Documents/abc.xyz}
where abc.xyz is the file name I am trying to upload.
-1021 error code usually comes in case of authentication failure while uploading. That too AFTER the file has been uploaded. But this time it appears even before the upload starts.
I tried loadMetadata: API, it works fine, and returns the metadata.
On 2 devices with the latest iOS installed, dropbox upload works fine. I tried updating to latest SDK, but even then it doesn't work.
You can check this build it works fine with me in iOS 5,6 from Dropbox Forum
Also you can download the build from Here
这篇关于Dropbox核心API - 上传之前的1021错误 - 仅在iOS 5及以下版本中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!