marinofaggiana 6 years ago
parent
commit
c51a57ea6e
1 changed files with 1 additions and 0 deletions
  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)
     }