Win a copy of The Java Performance Companion this week in the Performance forum!
    Bookmark Topic Watch Topic
  • New Topic

How to upload only image file

 
Anup Srivastava
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
You posted this question twice. other copy is here:http://www.coderanch.com/t/117137/HTML-JavaScript/select-upload-file-type

closing this one.

Eric
 
    Bookmark Topic Watch Topic
  • New Topic