aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes File upload filter Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "File upload filter" Watch "File upload filter" New topic
Author

File upload filter

Manish Hatwalne
Ranch Hand

Joined: Sep 22, 2001
Posts: 2578

Can I apply filter to following type of input control? I only want user to upload jpg files. How can I ensure that?

<input type="file" name="theFile">

TIA,
- Manish
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6


That is the basic idea....BUT you should always check it on the server TOO.

Eric
 
Consider Paul's rocket mass heater.
 
subject: File upload filter