Add UploadFileSafe().

This commit is contained in:
Gucheng Wang
2021-11-20 16:21:15 +08:00
parent 9eb09b7db0
commit 95600414d9
5 changed files with 27 additions and 4 deletions

View File

@ -63,7 +63,7 @@ func getPermanentAvatarUrl(organization string, username string, url string) str
panic(err)
}
_, _, err = UploadFile(defaultStorageProvider, fullFilePath, fileBuffer)
_, _, err = UploadFileSafe(defaultStorageProvider, fullFilePath, fileBuffer)
if err != nil {
panic(err)
}