Skip to content
This repository has been archived by the owner on Aug 9, 2023. It is now read-only.

Commit

Permalink
fixed media
Browse files Browse the repository at this point in the history
  • Loading branch information
flc1125 committed Jun 24, 2022
1 parent b32087c commit 3f50a1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion media.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 3f50a1b

Please sign in to comment.