I'm trying to create an "upload file, and email as an attachment" form where the file starts uploading after it has been selected (like Gmail), before sending the email. I would also like to implement a progress bar to show the status of the upload.
There should be all sorts of examples out there, but I just can't find them!
Do you know of any examples, or tutorials, plugins, helpers, or have you done this yourself and would like to share some code samples?
Thanks!
Important Steps to Upload Files in AJAXsetting up an instance for XMLHttpRequest. setting up objects for various XMLHttpRequest handlers. setting Ajax request to send data to the back end. validating the form.
Uploading Files in MVC using jQuery AJAX FormDataGo to File->New->Project. Give a suitable name to the Application. Click OK. As you can see in the above image, two files are sent to C# ActionMethod, and both will be uploaded now.
Have a look at
There is also an example of integrating fancyupload with Zend Framework: although fancyupload is based on mootools, you can learn from what's explained.
Note: as fancyupload, uploadify uses flash. However, it degrades when flash is not available.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With