Free Trial Buy Now

File Upload - AJAX Uploading

Clear selectionBrowse...
Clear selectionBrowse...
Allowed image types: jpeg, gif
Maximum file size: 20MB

Description

The DevExpress MVC File Upload Extension allows end-users to upload files to an application server. In this demo, both client and server capabilities are used to upload an image file to the server via a callback, create the image's thumbnail, and display the thumbnail within a specific placeholder on the web page.

A callback for file upload is initiated by using the Upload Extension’s Upload client method - called in response to a button click. In order to process callbacks properly, the Upload Extension's CallbackRouteValues property is used to specify the path to a controller action used to handle a callback request. In the action's implementation, the UploadControlExtension.GetUploadedFiles static method with specific parameters is used to process the uploaded file. One of the parameters identifies a delegate method that receives the FileUploadCompleteEventArgs argument. Using this argument, the delegate method implements all the logic to save the uploaded file (using the e.UploadedFile.SaveAs method) and display its thumbnail in a placeholder.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress MVC Extensions ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.