wood burning stoves 2.0*
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 Spring in Action this week in the Spring 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: 15376
You posted this question twice. other copy is here:http://www.coderanch.com/t/117137/HTML-JavaScript/select-upload-file-type

closing this one.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: How to upload only image file