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 file upload and javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "ajax file upload and javascript" Watch "ajax file upload and javascript" New topic

ajax file upload and javascript

jite eghagha
Ranch Hand

Joined: Oct 06, 2006
Posts: 128
I'm trying to submit parameters and images to a servlet using valums / file-uploader uploader

The trouble my is Servlet receives no parameters on my first upload, and will sometimes receive parameters if i refresh the page. The Servlet always receives the file.

below is the javascript that handles the upload: (i script runs )

Below is the Boby of page:

Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
Have you used a tool such as Fiddler to see what is being sent to the server?

I agree. Here's the link:
subject: ajax file upload and javascript
It's not a secret anymore!