marinofaggiana 6 年之前
父節點
當前提交
c51a57ea6e
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)
     }