Remove file from FileUpload

Hello there, I need help. I am using FileUpload to upload an Excel file to this file i am doing validations. If the file does not meet the requirements, I want to remove it so that it has to be uploaded again. How can I do the part of removing the file?
1 Reply
DrByte
DrByte2y ago
Probably ->storeFiles(false) on the upload component. And optionally ->visibility('private') although that might not be relevant depending on your choice of disk().

Did you find this page helpful?