Browse Source

fix

Signed-off-by: marinofaggiana <ios@nextcloud.com>
marinofaggiana 2 years ago
parent
commit
0c6490f670
2 changed files with 1 additions and 13 deletions
  1. 0 12
      iOSClient/Brand/iOSClient.entitlements
  2. 1 1
      iOSClient/Networking/NCNetworking.swift

+ 0 - 12
iOSClient/Brand/iOSClient.entitlements

@@ -4,18 +4,6 @@
 <dict>
 	<key>aps-environment</key>
 	<string>development</string>
-	<key>com.apple.developer.icloud-container-identifiers</key>
-	<array>
-		<string>iCloud.$(CFBundleIdentifier)</string>
-	</array>
-	<key>com.apple.developer.icloud-services</key>
-	<array>
-		<string>CloudDocuments</string>
-	</array>
-	<key>com.apple.developer.ubiquity-container-identifiers</key>
-	<array>
-		<string>iCloud.$(CFBundleIdentifier)</string>
-	</array>
 	<key>com.apple.security.application-groups</key>
 	<array>
 		<string>group.it.twsweb.Crypto-Cloud</string>

+ 1 - 1
iOSClient/Networking/NCNetworking.swift

@@ -416,7 +416,7 @@ import Queuer
 
             // DETECT IF CHUNCK
             let chunckSize = CCUtility.getChunkSize() * 1000000
-            if metadata.size > chunckSize {
+            if chunckSize > 0 && metadata.size > chunckSize {
                 metadata.chunk = true
                 metadata.session = NCCommunicationCommon.shared.sessionIdentifierUpload
             }