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

+ 2 - 2
PickerFileProvider/FileProvider.swift

@@ -373,7 +373,7 @@ class FileProvider: NSFileProviderExtension {
                         let metadataNet = CCMetadataNet()
                         
                         metadataNet.account = account
-                        metadataNet.assetLocalIdentifier = ""
+                        metadataNet.assetLocalIdentifier = CCUtility.createRandomString(20)
                         metadataNet.fileName = fileName
                         metadataNet.path = url.path
                         metadataNet.selector = selectorUploadFile
@@ -815,7 +815,7 @@ class FileProvider: NSFileProviderExtension {
                 let metadataNet = CCMetadataNet()
                 
                 metadataNet.account = account
-                metadataNet.assetLocalIdentifier = ""
+                metadataNet.assetLocalIdentifier = CCUtility.createRandomString(20)
                 metadataNet.fileName = fileName
                 metadataNet.path = importDocumentURL!.path + "/" + metadata.fileNameView
                 metadataNet.selector = selectorUploadFile