Skip to content

Commit

Permalink
file: refine filetype detection
Browse files Browse the repository at this point in the history
The eight file-types based on CFB or ZIP compound files can be detected
with 100% accuracy (or at least 99.999%). Try this strategy first,
ignoring the unreliable content-type for these file-types.

This fixes a problem where a CSV file with an asserted XLS file-type was
mistakenly typed as XLS and failed partitioning.
  • Loading branch information
scanny committed Dec 15, 2024
1 parent 3b718ec commit 2d15fea
Show file tree
Hide file tree
Showing 2 changed files with 207 additions and 476 deletions.
Loading

0 comments on commit 2d15fea

Please sign in to comment.