Browse Source

Add session on metadata Upload

Marino Faggiana 6 years ago
parent
commit
ef82374a77
1 changed files with 2 additions and 1 deletions
  1. 2 1
      PickerFileProvider/FileProvider.swift

+ 2 - 1
PickerFileProvider/FileProvider.swift

@@ -981,9 +981,10 @@ class FileProvider: NSFileProviderExtension {
         metadata.directory = false
         metadata.directoryID = directoryParent.directoryID
         metadata.etag = "000"
-        metadata.fileID = metadata.directoryID + fileName + ".temp"
+        metadata.fileID = CCUtility.createRandomString(10) + ".temp"
         metadata.fileName = fileName
         metadata.fileNameView = fileName
+        metadata.session = k_upload_session_extension
         metadata.size = size
         metadata.status = Double(k_metadataStatusHide)