Skip to content

[Bug]: depending on file extension instead of more realiable data #112

@baseciq

Description

@baseciq

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

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions