Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trying to find an AJAX file upload solution for Zend Framework using jQuery

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!

like image 269
Andrew Avatar asked Apr 13 '09 09:04

Andrew


People also ask

Can Ajax upload files?

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.

How upload file with jQuery Ajax in MVC?

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.


1 Answers

Have a look at

  • uploadify
  • Using Uploadify with Zend Framework
  • How to integrate uploadify in Zend Framework 1.9.6

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.

like image 190
Gregory Pakosz Avatar answered Sep 28 '22 12:09

Gregory Pakosz