Hi Ramesh,
You can put a validation decision using FileDocument > Size
true continue
false show message
Please see this question and answer, which is similar to what you asked.
https://forum.mendix.com/link/space/app-development/questions/116215
Ferhat