I am using CommonsMultipartResolver to upload a picture and it works ok. I have set the max upload file size, but I would like to know if there is a way to restrict the file type that can be uploaded. I use the ByteArrayMultipartFileEditor.
I only want to allow the uploading of jpg images.
Thanks


Reply With Quote