mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-02 19:40:19 +08:00
Add UploadFileSafe().
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user