Hello community,
I use HTMLB:fileUpload to upload files to our SAP System. The file gets stored in our archive system.
I need to ensure that user only upload files of a given file format (like *.xls, *.pdf). Also the user should only upload files with a maximum size of 5MB. How can this be realised? I can't find an attribute at fileUpload tag to realize. It should be checked at Client side (maybe JS?). I'm able to check the size and file type on server side but this is a silly solution. Imagine, you select a huge file, waiting several minutes for update and after upload completes, the page tells you the file is too large and also doesn't match allowed extensions.
Thanks for your help.