The rich:fileUpload component allows you to upload files from the users machine to the server with various options.

This example allows you to upload files to the demo server. The number of files allowed at once is managed with the maxFilesQuantity attribute. Every uploaded file will be processed with a fileUploadListener which is called after every single file upload operation is finished.

Example limitations
This example allows you to upload up to 5 files. The file extension is limited to GIF, JPG, BMP, PNG and the maximum size of each file must not exceed 100kB

FileUpload requires two context-parameter's to be set in web.xml:

- createTempFiles boolean attribute which defines whether the uploaded files are stored in temporary files or available in the listener directly as byte[] data (false for this example).
- maxRequestSize attribute defines max size in bytes of the uploaded files (100,000 for this example).