File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Struts and the fly likes Struts | File Upload | Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts | File Upload | Validation" Watch "Struts | File Upload | Validation" New topic

Struts | File Upload | Validation

Shiaber Shaam
Ranch Hand

Joined: Jun 16, 2006
Posts: 252
How to validate/restrict the size of the uploaded file in client? I don't want to use ActiveX objects. Please suggest.

Rahul Nair
Ranch Hand

Joined: Dec 01, 2007
Posts: 138

provide the maximumSize param with max file size in bytes in struts 2 File Upload Interceptor in action declaration.



I agree. Here's the link:
subject: Struts | File Upload | Validation
jQuery in Action, 3rd edition