Uploading large files is causing the -1101 error in my app frequently from my customers and also when I test. I am using a 50 Mbps internet connection on a 170 MB file size upload.
Any ideas or workarounds?
I was looking at using uploadFileChunk for iOS SDK but cannot find any examples.
Ok. I have tried to create the code in Objective-C and so far I keep getting
DropboxSDK: error making request to /1/chunkedupload - (404) No upload with uploadid
My code:
// parametersArray[0] is the File Name being uploaded. "MyFileName.zip"
// parametersArray[2] is the actual Path Plus File name from the iOS Device. "/path/morepath/morepath/MyFileName.zip"
[self.restClient uploadFileChunk:parametersArray[0] offset:0 fromPath:parametersArray[2]];
// Never gets called? <DBRestClientDelegate, DBSessionDelegate> I am using these delegates.
// Dropbox Delegate
- (void)restClient:(DBRestClient *)client uploadedFileChunk:(NSString *)uploadId newOffset:(unsigned long long)offset fromFile:(NSString *)localPath expires:(NSDate *)expiresDate {
unsigned long long fileSize = [[[NSFileManager defaultManager]attributesOfItemAtPath:self.parametersArrayByChunks[2] error:nil] fileSize];
if (offset >= fileSize)
{
//Upload complete, commit the file.
NSLog(@"uploadId: %@", uploadId);
[self.restClient uploadFile:self.parametersArrayByChunks[0] toPath:self.parametersArrayByChunks[1] withParentRev:nil fromUploadId:uploadId];
}
else
{
//Send the next chunk and update the progress HUD.
//self.progressHUD.progress = (float)((float)offset / (float)fileSize);
[self.restClient uploadFileChunk:uploadId offset:offset fromPath:self.parametersArrayByChunks[2]];
}
}
Any thoughts?
Thank you.