fix: png avatar upload as jpeg (#8665)
This commit is contained in:
parent
86f90fd9ff
commit
b37954b966
2 changed files with 21 additions and 2 deletions
|
|
@ -88,7 +88,7 @@ const AppIconPicker: FC<AppIconPickerProps> = ({
|
|||
if (!imageCropInfo)
|
||||
return
|
||||
setUploading(true)
|
||||
const blob = await getCroppedImg(imageCropInfo.tempUrl, imageCropInfo.croppedAreaPixels)
|
||||
const blob = await getCroppedImg(imageCropInfo.tempUrl, imageCropInfo.croppedAreaPixels, imageCropInfo.fileName)
|
||||
const file = new File([blob], imageCropInfo.fileName, { type: blob.type })
|
||||
handleLocalFileUpload(file)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue