diff --git a/packages/file-handling/src/fileupload.js b/packages/file-handling/src/fileupload.js index 53e9da629ca810f52fbf64e2521d70463b881c22..88e825aa6fc174e743150037b10a8fac1db3dbcd 100644 --- a/packages/file-handling/src/fileupload.js +++ b/packages/file-handling/src/fileupload.js @@ -149,6 +149,10 @@ export class FileUpload extends ScopedElementsMixin(VPULitElement) { // we need to copy the files to another array or else they will be gone in the setTimeout function! let tempFilesToHandle = []; await commonUtils.asyncArrayForEach(files, async (file) => { + if (file.size === 0) { + console.log('file ' + file.name + ' has size=0 and is denied!') + return; + } tempFilesToHandle.push(file); });