generated from spatie/package-skeleton-php
-
-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Labels
bugSomething isn't workingSomething isn't working
Description
What happened?
Hello. Have you considered using more realiable data for determining file type than file extension?
My own experience shows that PHP's built-in native mime functions don't always work (or rather, rarely do) and are highly dependent on the operating system. But perhaps there are some reliable libraries that recognize mime types reliably and could be used.
I'm writing this after two hours of debugging why your library couldn't read the /tmp/phplKUNqS file. You probably wrote about this in the documentation, but who would read it? :^)
T.I.A.
How to reproduce the bug
Rename "ebook.epub" to "ebook"
Try to load it via library
Package Version
3.0.05
PHP Version
8.2.28
Which operating systems does with happen with?
Linux
Notes
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working