Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't rely on file endings to deduce file content types #12

Open
kschulst opened this issue Mar 14, 2023 · 0 comments
Open

Don't rely on file endings to deduce file content types #12

kschulst opened this issue Mar 14, 2023 · 0 comments

Comments

@kschulst
Copy link
Contributor

Currently, when deducing file types, the following is used:
FileTypes.probeContentType

This in turn delegates to standard JDK Files content type probing, which is a bit primitive. It e.g. relies on files having a suffix.

Instead, we should use TikaLiteFileTypeDetector util to determine file content type, which should be a bit more capable.

And while we're at it: We should upgrade Tika to use the latest major version. We're on 1.x, and the latest is 2.x (which has some breaking changes).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant