I want to upload a file using Ajax and php. I have a form with file inclusion tag. I want when user will browse a file and click on submit then file should be uploaded without refresh. How will i do this ?It does't matter if refresh occur but i want to upload file with help of ajax.
A:
I did it with this jquery plugin. It pretty much mimics standard jquery ajax functionality, but also allows you to send data using iframe. No flash involved, pure javascript.
http://malsup.com/jquery/form/
Here is a file upload example
http://malsup.com/jquery/form/#file-upload
Nikita Rybak
2010-05-02 22:38:00