Browse Source

Update NCNetworkingE2EEUpload.swift

Marino Faggiana 1 year ago
parent
commit
da32668002
1 changed files with 1 additions and 1 deletions
  1. 1 1
      iOSClient/Networking/E2EE/NCNetworkingE2EEUpload.swift

+ 1 - 1
iOSClient/Networking/E2EE/NCNetworkingE2EEUpload.swift

@@ -184,7 +184,7 @@ class NCNetworkingE2EEUpload: NSObject {
         if metadata.chunk {
 
             return await withCheckedContinuation({ continuation in
-                NCNetworking.shared.uploadChunkFile(metadata: metadata, withUploadComplete: false) {
+                NCNetworking.shared.uploadChunkFile(metadata: metadata, withUploadComplete: false, addCustomHeaders: ["e2e-token": e2eToken]) {
                     uploadE2EEDelegate?.start()
                 } progressHandler: { totalBytesExpected, totalBytes, fractionCompleted in
                     uploadE2EEDelegate?.uploadE2EEProgress(totalBytesExpected, totalBytes, fractionCompleted)