Skip to content

Commit

Permalink
NMC 1988 - Nextcloudkit changes after NC 5.2.2 Release
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-amrutwaghmare committed Apr 12, 2024
1 parent 3a13e9f commit adf435a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions iOSClient/Scan document/NCCreateFormUploadScanDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC

let metadataForUpload = NCManageDatabase.shared.createMetadata(account: appDelegate?.account ?? "", user: appDelegate?.user ?? "", userId: appDelegate?.userId ?? "", fileName: fileNameSave, fileNameView: fileNameSave, ocId: UUID().uuidString, serverUrl: serverUrl, urlBase: appDelegate?.urlBase ?? "", url: "", contentType: "")

metadataForUpload.session = NCNetworking.shared.sessionIdentifierBackground
metadataForUpload.session = NCNetworking.shared.sessionUploadBackground
metadataForUpload.sessionSelector = NCGlobal.shared.selectorUploadFile
metadataForUpload.status = NCGlobal.shared.metadataStatusWaitUpload

Expand Down Expand Up @@ -771,7 +771,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC

let metadataForUpload = NCManageDatabase.shared.createMetadata(account: appDelegate?.account ?? "", user: appDelegate?.user ?? "", userId: appDelegate?.userId ?? "", fileName: fileNameSave, fileNameView: fileNameSave, ocId: UUID().uuidString, serverUrl: serverUrl, urlBase: appDelegate?.urlBase ?? "", url: "", contentType: "")

metadataForUpload.session = NCNetworking.shared.sessionIdentifierBackground
metadataForUpload.session = NCNetworking.shared.sessionUploadBackground
metadataForUpload.sessionSelector = NCGlobal.shared.selectorUploadFile
metadataForUpload.status = NCGlobal.shared.metadataStatusWaitUpload

Expand Down Expand Up @@ -843,7 +843,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC

let metadataForUpload = NCManageDatabase.shared.createMetadata(account: appDelegate?.account ?? "", user: appDelegate?.user ?? "", userId: appDelegate?.userId ?? "", fileName: fileNameSave, fileNameView: fileNameSave, ocId: UUID().uuidString, serverUrl: serverUrl, urlBase: appDelegate?.urlBase ?? "", url: "", contentType: "")

metadataForUpload.session = NCNetworking.shared.sessionIdentifierBackground
metadataForUpload.session = NCNetworking.shared.sessionUploadBackground
metadataForUpload.sessionSelector = NCGlobal.shared.selectorUploadFile
metadataForUpload.status = NCGlobal.shared.metadataStatusWaitUpload

Expand Down Expand Up @@ -881,7 +881,7 @@ class NCCreateFormUploadScanDocument: XLFormViewController, NCSelectDelegate, NC
}

NCManageDatabase.shared.addMetadata(metadataForUpload)
NCNetworkingProcessUpload.shared.createProcessUploads(metadatas: [metadataForUpload], completion: { _ in })
NCNetworkingProcess.shared.createProcessUploads(metadatas: [metadataForUpload], completion: { _ in })
}
}

Expand Down

0 comments on commit adf435a

Please sign in to comment.