chaitanya karthikk wrote:
Maneesh Godbole wrote:Do you wish to validate the file extension(s) of the file being uploaded (tar.gz/zip) or the file extension(s) of the file(s) inside the compressed file being uploaded?
I wish to validate the extension of the file being uploaded.
The exact method depends on the upload code you're using, but
you should have access to the original file name.
For example, an Apache FileUpload FileItem has a getName for getting the filename.