diff --git a/media.go b/media.go index 6cdf00a..0c99af9 100644 --- a/media.go +++ b/media.go @@ -66,7 +66,7 @@ func (m *Media) Upload(fileType string, filePath string) (string, error) { return "", err } tmpFile := m.config.GetPath() + "/youdu-" + fileInfo.Name() + time.Now().Format("20060102150405") + ".tmp" - // defer os.Remove(tmpFile) + defer os.Remove(tmpFile) if err := os.WriteFile(tmpFile, []byte(fileEncrypt), 0644); err != nil { return "", err }