diff --git a/packages/components/src/form/FileUpload/FileUpload.js b/packages/components/src/form/FileUpload/FileUpload.js index f218f70e4..5d0c3753c 100644 --- a/packages/components/src/form/FileUpload/FileUpload.js +++ b/packages/components/src/form/FileUpload/FileUpload.js @@ -103,7 +103,11 @@ const FileUpload = ({ if ('File' in window && file instanceof File && file.type.indexOf('image') >= 0) { return URL.createObjectURL(file); } - return file?.url ?? ''; + if (file?.url && file?.type?.indexOf('image') >= 0) { + return file.url; + } + + return null; }; return (