I have a form where the user can upload a zip file, it works perfectly on my side but the client I’m making the website for is not able to upload the zip.
I check for the mime type and normally it should work for her to but the problem is that her mime type looks like this:
application/octet-stream/”
why is there a /” ? anyone experienced this problem before? as I said I don’t have that problem and I checked the form and the code who process the content of the form and I didn’t miss a quote or anything.
That does sound pretty broken – but rather than relying on the mime type, why not just check that the zip file starts with the right magic number (ASCII “PK”)? Or even better, use a zip library to check that it looks vaguely sane.