Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ajax using file upload

I am creating mail page for sending mails. I need to attach some file before sending. How could I do this using AJAX? Initially I need to store those files in server and then I have to send the mail. These actions are done with in a single send button.

like image 225
praveenjayapal Avatar asked Feb 02 '09 06:02

praveenjayapal


People also ask

Can we upload file using AJAX?

A JavaScript method must be coded to initiate the asynchronous Ajax based file upload; A component must exist on the server to handle the file upload and save the resource locally; The server must send a response to the browser indicating the JavaScript file upload was successful; and.

Can we upload image using AJAX?

jQuery AJAX image upload requires core jQuery features and nothing fancy is used. For AJAX image upload, enctype='multipart/form-data' is not required as we are not submitting via form post. We are using AJAX data transfer and multipart form data is not required for the image upload.


1 Answers

Check these questions:

  • JavaScript file uploads
  • How can I get Gmail-like file uploads for my web app?
  • What is the best multiple file JavaScript / Flash file uploader?
like image 72
Christian C. Salvadó Avatar answered Sep 27 '22 22:09

Christian C. Salvadó