0
我正尝试在iOS应用程序中的Creative Cloud上载文档文件。它工作正常,但现在我得到了上传错误。将文件上传到Creative Cloud iOS时出错
error uploading Error Domain=AdobeAssetErrorDomain Code=2 "(null)" UserInfo={AdobeNetworkResponseHeaders={
connection = "keep-alive";
"content-encoding" = gzip;
"content-length" = 90;
"content-type" = "application/vnd.adobe.error-response+json";
date = "Sun, 23 Apr 2017 13:33:13 GMT";
server = APIP;
vary = "Accept-Encoding";
"x-request-id" = "DB0C9B95-7D84-45EA-9BFF-F04020C3796E";
}, AdobeNetworkRequestURLStringKey=https://cc-api-storage.adobe.io/files/?order=asc&orderby=name, AdobeNetworkResponseData={"reason":"bad_request","message":"A required parameter is missing or invalid"}, AdobeNetworkHTTPDebugIDKey=DB0C9B95-7D84-45EA-9BFF-F04020C3796E, AdobeNetworkHTTPStatus=400}
以下是我的代码。
if ([AdobeUXAuthManager sharedManager].isAuthenticated)
{
NSLog(@"The user has already been authenticated. User profile: %@", [AdobeUXAuthManager sharedManager].userProfile);
AdobeAssetFolder *root = [AdobeAssetFolder getRootOrderedByField:AdobeAssetFolderOrderByName
orderDirection:AdobeAssetFolderOrderDescending];
[AdobeAssetFile create:_fileName
inFolder:root
withDataPath:[NSURL fileURLWithPath:filePath]
withType:kAdobeMimeTypeRaw
withCollisionPolicy:AdobeAssetFileCollisionPolicyAppendUniqueNumber
onProgress:^(double fractionCompleted) {
NSLog(@"Percent complete %f", fractionCompleted);
}
onCompletion:^(AdobeAssetFile *file) {
}
onCancellation:NULL
onError:^(NSError *error) {
NSLog(@"error uploading %@", error);
}];
}