在使用七牛物件儲存 iOS objective-c sdk時使用斷點續傳
1.使用下列程式碼初始化 QNUploadManager
QNFileRecorder *file = [QNFileRecorder fileRecorderWithFolder:[NSTemporaryDirectory() stringByAppendingString:@"qnFileRecorder"]
error:&error];
if (error == nil)
{
_qnUploadTaskManager = [[QNUploadManager alloc] initWithRecorder:file];
}
2.在後面進行上傳後會提示以下錯誤
up record set error mohoApp/class/d5e3bcd08a7448d9856818ac00e322a4_NJ5BCT_1497338027000_video.mp4odo d9856818ac00e322a4_NJ5BCT_1497338027000_video.mp4」不存在。" UserInfo={ NSFilePath=/Users/darsky/Library/Developer/CoreSimulator/Devices/7AF65925-8B7C-462A-B055-24A889ACD874/data/Containers/Data/Application/3BAFD5A889ACD874/data/Containers/Data/Application/3BAFD5A8-9995-4727627276Fcxp. App/class /d5e3bcd08a7448d9856818ac00e322a4_NJ5BCT_1497338027000_video.mp4, NSUserStringVariant=Folder, NSUnderlyingError=0x608000554 directory"}}
3.是否有缺失的步驟?
putFile 時的key參數不正確,修改正確後能夠正常使用