|
@@ -3572,13 +3572,16 @@
|
|
|
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, timer * NSEC_PER_SEC), dispatch_get_main_queue(), ^{
|
|
|
|
|
|
NSString *fileName = [[NCUtility sharedInstance] createFileName:metadata.fileName directoryID:directoryID];
|
|
|
+ NSString *fileID = [directoryID stringByAppendingString:fileName];
|
|
|
+
|
|
|
+ [CCUtility copyFileAtPath:[CCUtility getDirectoryProviderStorageFileID:metadata.fileID fileNameView:metadata.fileNameView] toPath:[CCUtility getDirectoryProviderStorageFileID:fileID fileNameView:fileName]];
|
|
|
|
|
|
tableMetadata *metadataForUpload = [tableMetadata new];
|
|
|
|
|
|
metadataForUpload.account = appDelegate.activeAccount;
|
|
|
metadataForUpload.date = [NSDate new];
|
|
|
metadataForUpload.directoryID = directoryID;
|
|
|
- metadataForUpload.fileID = [directoryID stringByAppendingString:metadata.fileName];
|
|
|
+ metadataForUpload.fileID = fileID;
|
|
|
metadataForUpload.fileName = fileName;
|
|
|
metadataForUpload.fileNameView = fileName;
|
|
|
metadataForUpload.session = k_upload_session;
|