marinofaggiana 6 vuotta sitten
vanhempi
commit
c51a57ea6e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      iOSClient/Main/Create cloud/NCCreateFormUploadVoiceNote.swift

+ 1 - 0
iOSClient/Main/Create cloud/NCCreateFormUploadVoiceNote.swift

@@ -208,6 +208,7 @@ class NCCreateFormUploadVoiceNote: XLFormViewController, NCSelectDelegate {
     
     @objc func cancel() {
         
+        try? FileManager.default.removeItem(atPath: fileNamePath)
         self.dismiss(animated: true, completion: nil)
     }