karthi
karthi

Reputation: 147

How to upload file using java script?

I need to upload a file to the tomcat server from my html page, How can I do that?
Basically give me a clean & simple idea and some samples?
Searched a lot but can't understand this is totally new to me, am a bb app developer.

For desinging used a form in that used input type = file and a button

I don't get an idea how to start with the functionality. Anyone plz help me?

Upvotes: 3

Views: 2882

Answers (1)

zozo
zozo

Reputation: 8582

You can't use js to upload anything. You send the file to a php script that saves it.

Check this.

http://www.tizag.com/phpT/fileupload.php

Upvotes: 2

Related Questions