I have a requirement to upload files using my Java - Spring web application.
While uploading files the web application, I need to check for the type of file to be uploaded. As per my requirement I need allow Zipped files to be uploaded.
To deal with the security concerns, the zip file should be screened for executable files or unwanted file types, if I have a list of malicious file types.
Kindly suggest how can i know the content type of files in a zip, using java.