Marino Faggiana 6 years ago
parent
commit
61975953d9
1 changed files with 5 additions and 3 deletions
  1. 5 3
      PickerFileProvider/FileProviderItem.swift

+ 5 - 3
PickerFileProvider/FileProviderItem.swift

@@ -118,9 +118,11 @@ class FileProviderItem: NSObject, NSFileProviderItem {
                 self.isMostRecentVersionDownloaded = true
                 self.isUploading = true
                 self.isUploaded = false
-                if metadata.sessionError != "" {
-                    uploadingError = NSError(domain: NSCocoaErrorDomain, code: NSFeatureUnsupportedError, userInfo:[:])
-                }
+            }
+            
+            // Upload error
+            if metadata.sessionError != "" {
+                uploadingError = NSError(domain: NSCocoaErrorDomain, code: NSFeatureUnsupportedError, userInfo:[:])
             }
             
         } else {