I want to restrict user only to upload CSV files in a perticular page.
Just to share my experience , I am using FilePicker.io in our application because, and its doing the job wonderfully. At some places I have to restrict users with file-extensions, and in some places of the application , users are restricted to a certain file size. And all the validation is done by filepickerio itself on the client side. Our main reason for using this was on the video upload module. We only accepted .mp4 and if user selected a large file (around 250mb with anyother extension) , then it was sheer stupidity to upload the 250mb file then perform validation of extension on the servlet side. FilePicker IO performs basic validation on the client side.
Muhammad Saif Asif Mirza
OCJA(5/6) OCJP(6) OCJWCD(6)
Joined: Jan 18, 2012
Thank you so much for the reply.
Can you please provide me some example? And
I request you to suggest me the validation using Spring.