Skip to content

Loading a pattern file based on file extension? #1397

Discussion options

You must be logged in to vote

Hey
This is generally not supported as file extensions don't really mean anything and not all providers even have the concept of file extensions.
Instead you can either write a custom magic file and assign a MIME type to your file that way or you use the new #pragma magic [ AA ?? ?? DD ] @ 0x12345678 pragma.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@graydav1
Comment options

Answer selected by graydav1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants