Dropbox核心API - 上传之前的1021错误 - 仅在iOS 5及以下版本中 [英] Dropbox Core API - 1021 error before upload - only in iOS 5 and below

查看:143
本文介绍了Dropbox核心API - 上传之前的1021错误 - 仅在iOS 5及以下版本中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将Dropbox核心API与我的两个iOS应用程序集成在一起。成功。几个星期前,它工作正常。但现在,当我在iOS 5.0或iOS 4.2设备上运行这些应用程序,并尝试调用uploadFile:API时,出现以下错误:

错误提出请求到/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}



其中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屋!

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