Try running this on the commandline
file --mime-type -b myfile.zip
Does it output jar ?
I have a store endpoint, that only allows files of type 'zip'. This is my validation statement:
"file" => ["required", "file", "mimes:zip"],
When I upload a zip file, this validation statement returns an error: "The file must be a file of type: zip."
When I remove mimes validation, it gets saved to the server, with an extension of ".jar". Can anybody share some insight, please?
Please or to participate in this conversation.