marinofaggiana 4 years ago
parent
commit
3de1adeef4
1 changed files with 1 additions and 6 deletions
  1. 1 6
      iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

+ 1 - 6
iOSClient/Main/Create cloud/NCCreateFormUploadScanDocument.swift

@@ -747,12 +747,9 @@ class NCCreateScanDocument : NSObject, VNDocumentCameraViewControllerDelegate {
     }
     
     func documentCameraViewController(_ controller: VNDocumentCameraViewController, didFinishWith scan: VNDocumentCameraScan) {
-        
-        var fileNames: String = ""
-        
+                
         for pageNumber in 0..<scan.pageCount {
             let fileName = CCUtility.createFileName("scan.png", fileDate: Date(), fileType: PHAssetMediaType.image, keyFileName: NCGlobal.shared.keyFileNameMask, keyFileNameType: NCGlobal.shared.keyFileNameType, keyFileNameOriginal: NCGlobal.shared.keyFileNameOriginal)!
-            fileNames = fileNames + " | " + fileName
             let fileNamePath = CCUtility.getDirectoryScan() + "/" + fileName
             let image = scan.imageOfPage(at: pageNumber)
             do {
@@ -760,8 +757,6 @@ class NCCreateScanDocument : NSObject, VNDocumentCameraViewControllerDelegate {
             } catch { }
         }
         
-        NCContentPresenter.shared.messageNotification("DEBUG", description: fileNames, delay: NCGlobal.shared.dismissAfterSecondLong, type: NCContentPresenter.messageType.success, errorCode: 0, forced: true)
-        
         controller.dismiss(animated: true) {
             if self.viewController is DragDropViewController {
                 (self.viewController as! DragDropViewController).loadImage()