Does anybody know a way of validating a .mobi upload?
I've tried both "x-mobipocket-ebook" and "octet-stream" as mime types to validate against, but the Symfony MimeType package sees these as .prc and .bin files respectively, .mobi does not seem to be listed.
Thanks
Why not extending from https://github.com/symfony/symfony/blob/master/src/Symfony/Component/HttpFoundation/File/MimeType/MimeTypeExtensionGuesser.php and add your needed mime type?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community