This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSP and the fly likes File type and size 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 » Java » JSP
Reply locked New topic
Author

File type and size

Mohamad Ibrahim
Greenhorn

Joined: Jun 26, 2007
Posts: 26
I want to check the file type and size when i upload it using jsp and struts .
For example, i don't want the user to upload the exe files or the file is bigger than 10mb .
Thanks for help..
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60738
    
  65

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: File type and size
 
Similar Threads
Struts2: How to do file upload validation programatically ?
ENCTYPE=multipart/form-data , input type=file
Regarding Upload a file
How to upload only image file
File type and size