• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

maxFileSize validation for RequestProcessor

 
Manish Hatwalne
Ranch Hand
Posts: 2596
Android Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a custom request processor and the maxFileSize attribute for the same is set to 100K as follows in struts-config.xml



So whenever I am trying to upload a file bigger than 100 KB, it doesn't allow me. However, I'd like to display a proper error mesage to the user in this case, how can I do this? The action handling thsi upload does not even receive the call when size > 100 KB. where and how do I put this validation with appropriate error message

TIA,
- Manish
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic