Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asynchronous file upload (AJAX file upload) using jsp and javascript [duplicate]

I am planning on having asynchronous file uploads. That is the file should be uploaded to a jsp or servlet and return something to the html/jsp page without reloading the original page. It should happen like an AJAX call. Is there any way to do it in AJAX or any other way to do it.

like image 826
Prasanna Raghu Avatar asked Aug 14 '09 09:08

Prasanna Raghu


1 Answers

The two common approaches are to submit the form to an invisible iframe, or to use a Flash control such as YUI Uploader. You could also use Java instead of Flash, but this has a narrower install base.

(Shame about the layout table in the first example)

like image 106
Quentin Avatar answered Oct 02 '22 16:10

Quentin