File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes Ajax Upload file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Ajax Upload file" Watch "Ajax Upload file" New topic

Ajax Upload file

Eideo Guo

Joined: Aug 16, 2005
Posts: 29
Hi All,
i wanna to know how to upload file use ajax,my server side is java
thanks in advance
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

Since Javascript has no access to the file system, Ajax is not a suitable technology for this task.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eideo Guo

Joined: Aug 16, 2005
Posts: 29
Thank you very much
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
You need to post the file to a hidden iframe. Eric
I agree. Here's the link:
subject: Ajax Upload file
Similar Threads
check File Existence and display alert message
GWT: Ajax file upload?
Is it possible to upload a file using Ajax
How To Upload a File by Using XMLHTTP
To upload a file using struts 1.2 and ajax