This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Force content type Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Force content type" Watch "Force content type" New topic
Author

Force content type

Gerardo Ramirez
Greenhorn

Joined: Jul 25, 2006
Posts: 9
How can I force my web app to only accept zip files as valid upload files?

thanks,

GR
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60791
    
  65

Check the file type during the upload.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Force content type
 
Similar Threads
Removing Non Empty Directories
forcing a download
Force compiling of all JSP
a weird bug..
How cool is ANT?