mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
refactor(backend): update file hash calculation from MD5 to SHA1 and rename related error handling
This commit is contained in:
@@ -31,7 +31,7 @@ func GenStandardFile(filePath string, mimeType string) (GenStandardFileReturn, e
|
||||
}
|
||||
fileSize := fileInfo.Size()
|
||||
|
||||
fileHash, err := u.GetFileMd5(file)
|
||||
fileHash, err := u.GetFileSHA1(file)
|
||||
if err != nil {
|
||||
return GenStandardFileReturn{}, err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user