Hi All,
We have a requirement where we are allow author to upload a file from their local system in AEM. For this we are using OOTB AEM /libs/cq/gui/components/authoring/dialog/fileupload.
It worked fine when their is no file selected previously and author tries to upload a empty file in authoring instance. AEM validate the file and doesn't upload it in the JCR. No node created for it.
Where as in case when author first selected a valid file with data in it and on top it upload an empty file (0 KB). In this scenario AEM is not validating the empty file and allow the author to upload it.
But in corresponding JCR node the old file with data still attached.
So just want to understand how AEM validate the empty file and is their any way we can restrict the Author to upload empty file in second scenario as well.
Thanks in advance.
Regards,
Shikha