This demo illustrates the typical use case of submitting a form with attached files that were uploaded asynchronously.
The uploaded files are kept in a temporary folder. When the Submit button is clicked, the editors are validated on the client side. If the Description text box is empty or no files have been uploaded, the form data cannot be submitted to the server and an error message is displayed.
If uploaded files are not submitted within 5 minutes, the temporary folder is removed.
When the editors pass the validation, the server-side code forms a list of objects containing information about uploaded files. This list is sent to the ProcessSubmit function, in which uploaded file processing should be implemented.
After the ProcessSubmit function is completed, the temporary folder is removed.