Hello, not really a specific question but i'm trying to secure a file upload, here are the main characteritics :
- uploaded file must be a zip
- zip contains audio files (and other stuff but that's not the point)
So what I want to verify is :
- Zip is really a zip
- audio are really audios
Because obviously checking file extension isn't great.
Are there best pratices concerning file upload ? Is there a way to do this without an additional librairy ?
Thanks