This example demonstrates how to upload files to a web server and display a status information of an upload process. A status information is received asynchronous in JavaScript Object Notation (JSON, for more information see An Introduction to JavaScript Object Notation (JSON) in JavaScript and .NET. ICallBackEventHandler is used for asynchronous call to the server.
Also this example demonstrates how to display to users an error message during upload. Specifically, the case when need to dispaly an error message about restriction of file size without reading the whole request.
This example allows to upload files with total volume less than 50 MB.

File 1:
File 2:




View C Sharp source code   View VB NET source code

This example doesn't work correctly in: Safari
Suggestion: detect a browser and if it's Safari display the progress indicator in a new window.

If you need help and advice in understanding how to implement this example please write to us support@easyalgo.com