Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • 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

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic