I am using jsp/servlet for file upload,
i am able to upload a file but want to limit the size of files that can be uploaded. Is there any way to check the size of file without uploading it.. (on server side)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can set
setSizeThresholdusingcommons-fileuploadNote: *You can’t determine the file size without streaming it up directly to server*