Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Upload And Submit

*
Documents
Add documents


Allowed file extensions: .jpg, .jpeg, .gif, .png.
Maximum file size: 4 MB.

Submit

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.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxFileManagerAndUploadDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxFileManagerAndUploadDemos