jQuery in Action, 3rd edition
The moose likes HTML, CSS and JavaScript and the fly likes How to upload only image file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Introducing JavaFX 8 Programming this week in the JavaFX forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic

How to upload only image file

Anup Srivastava

Joined: Dec 21, 2005
Posts: 21
i am uploading file in jsp page using ,
<input type="file" name="image" size="20" >
Now user can upload file of any type, but i want that user can upload only image files. How can i do it?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
You posted this question twice. other copy is here:http://www.coderanch.com/t/117137/HTML-JavaScript/select-upload-file-type

closing this one.

I agree. Here's the link: http://aspose.com/file-tools
subject: How to upload only image file
It's not a secret anymore!