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

download: handle binary file misdetected as html #993

Open
myfreeer opened this issue Oct 5, 2024 · 0 comments
Open

download: handle binary file misdetected as html #993

myfreeer opened this issue Oct 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@myfreeer
Copy link
Member

myfreeer commented Oct 5, 2024

This mean resources with its type ResourceType.Html, but the content type is available and being not html, very possible being an image or binary file.
Since the resource referencing this file could be already saved to disk, and there is no reference map that can tell that which resources referenced this file, so it's hard to deal with such kind of files, but at least we can make a warning log so users can fix in their detectResourceType life cycle.

@myfreeer myfreeer added the enhancement New feature or request label Oct 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant