fix: upload remote image preview (#9952)
This commit is contained in:
parent
82033af097
commit
78b74cce8e
7 changed files with 50 additions and 33 deletions
|
|
@ -31,8 +31,8 @@ const FileItem = ({
|
|||
onRemove,
|
||||
onReUpload,
|
||||
}: FileItemProps) => {
|
||||
const { id, name, type, progress, url } = file
|
||||
const ext = getFileExtension(name, type)
|
||||
const { id, name, type, progress, url, isRemote } = file
|
||||
const ext = getFileExtension(name, type, isRemote)
|
||||
const uploadError = progress === -1
|
||||
|
||||
return (
|
||||
|
|
@ -75,7 +75,9 @@ const FileItem = ({
|
|||
</>
|
||||
)
|
||||
}
|
||||
{formatFileSize(file.size || 0)}
|
||||
{
|
||||
!!file.size && formatFileSize(file.size)
|
||||
}
|
||||
</div>
|
||||
{
|
||||
showDownloadAction && (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue