marinofaggiana 5 年之前
父节点
当前提交
15c8287a00
共有 3 个文件被更改,包括 4 次插入3 次删除
  1. 1 1
      Cartfile.resolved
  2. 1 1
      File Provider Extension/FileProviderItem.swift
  3. 2 1
      iOSClient/Networking/CCNetworking.m

+ 1 - 1
Cartfile.resolved

@@ -16,7 +16,7 @@ github "krzyzanowskim/OpenSSL" "1.0.218"
 github "malcommac/SwiftRichString" "3.7.1"
 github "malcommac/SwiftRichString" "3.7.1"
 github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/AFNetworking" "2967678c3e0e98c9b8d7e06222ad12d1f49c26f2"
 github "marinofaggiana/KTVHTTPCache" "2.0.2"
 github "marinofaggiana/KTVHTTPCache" "2.0.2"
-github "nextcloud/ios-communication-library" "2c670fe1d7b3c2500dcd3de880f24c18ca936624"
+github "nextcloud/ios-communication-library" "458422bfda44fc398eed25369269aa250b1375e7"
 github "realm/realm-cocoa" "v4.4.1"
 github "realm/realm-cocoa" "v4.4.1"
 github "rechsteiner/Parchment" "v1.7.0"
 github "rechsteiner/Parchment" "v1.7.0"
 github "scenee/FloatingPanel" "v1.7.4"
 github "scenee/FloatingPanel" "v1.7.4"

+ 1 - 1
File Provider Extension/FileProviderItem.swift

@@ -47,7 +47,7 @@ class FileProviderItem: NSObject, NSFileProviderItem {
         metadata.iconName = results.iconName
         metadata.iconName = results.iconName
         metadata.typeFile = results.typeFile
         metadata.typeFile = results.typeFile
         
         
-        return results.contentType
+        return results.typeIdentifier
     }
     }
     
     
     var contentModificationDate: Date? {
     var contentModificationDate: Date? {

+ 2 - 1
iOSClient/Networking/CCNetworking.m

@@ -598,7 +598,8 @@
         
         
     } else {
     } else {
         
         
-        tableMetadata *metadataForUpload = [[NCManageDatabase sharedInstance] addMetadata:[CCUtility insertFileSystemInMetadata:metadata]];        
+        tableMetadata *metadataForUpload = [[NCManageDatabase sharedInstance] addMetadata:[CCUtility insertFileSystemInMetadata:metadata]];
+        
         if ([CCUtility isFolderEncrypted:metadataForUpload.serverUrl e2eEncrypted:metadataForUpload.e2eEncrypted account:metadataForUpload.account] && [CCUtility isEndToEndEnabled:metadataForUpload.account]) {
         if ([CCUtility isFolderEncrypted:metadataForUpload.serverUrl e2eEncrypted:metadataForUpload.e2eEncrypted account:metadataForUpload.account] && [CCUtility isEndToEndEnabled:metadataForUpload.account]) {
             [self e2eEncryptedFile:metadataForUpload taskStatus:taskStatus];
             [self e2eEncryptedFile:metadataForUpload taskStatus:taskStatus];
         } else {
         } else {