|
|
@@ -130,10 +130,11 @@ const beforeUpload: UploadProps['beforeUpload'] = (file: UploadRawFile) => {
|
|
|
const getFileUrl = (value: unknown): string => {
|
|
|
if (typeof value === 'string') return value
|
|
|
if (value && typeof value === 'object') {
|
|
|
- const file = value as { url?: unknown; path?: unknown; fileUrl?: unknown }
|
|
|
+ const file = value as { url?: unknown; path?: unknown; fileUrl?: unknown; filePath?: unknown }
|
|
|
if (typeof file.url === 'string') return file.url
|
|
|
if (typeof file.path === 'string') return file.path
|
|
|
if (typeof file.fileUrl === 'string') return file.fileUrl
|
|
|
+ if (typeof file.filePath === 'string') return file.filePath
|
|
|
}
|
|
|
return ''
|
|
|
}
|