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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply locked New topic
Author

How to upload only image file

Anup Srivastava
Greenhorn

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
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to upload only image file
 
Similar Threads
Images problem in FCK editor
FileUpload and File type
Image Upload - Jsp or servlet
File upload filter
To Save a file in a different location