File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Force content type" Watch "Force content type" New topic

Force content type

Gerardo Ramirez

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


Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63540

Check the file type during the upload.

[Asking smart questions] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: Force content type
It's not a secret anymore!