Using custom file type with same extension but with different magic bytes throws InvalidOperationException on FileTypeValidator.GetFileType() #10
Labels
can-not-reproduce
Reported bug that cant be reproduce from supporting developer
I added a custom file type for mp3 with different magic bytes '0xFF, 0xE3' then the already existing mp3 file type. When I try to get the file type via FileTypeValidator.GetFileType() for this custom file type, I get the following exception:
Its failing on line 74 of FileTypeValidator.cs
![image](https://user-images.githubusercontent.com/64642269/100078561-f26f5080-2e43-11eb-97be-f0264eb1ce60.png)
Suggestion:
Support custom file types with same extensions, but with different magic bytes.
The text was updated successfully, but these errors were encountered: