• Post Reply Bookmark Topic Watch Topic
  • New Topic

Struts | File Upload | Validation

 
Shiaber Shaam
Ranch Hand
Posts: 252
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 138
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

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

Thanks

Rahul

 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!