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

Unreliable MIME file types #267

Open
KairuDeibisu opened this issue Aug 15, 2023 · 0 comments
Open

Unreliable MIME file types #267

KairuDeibisu opened this issue Aug 15, 2023 · 0 comments
Labels
area:packages issue regarding one of the uploadthing packages bug: low priority something isn't working as it should, but it's not critical to the core functionality haunted things that will likely be difficult to test / find root causes on planned We would like this to happen

Comments

@KairuDeibisu
Copy link

For the past week, I've been troubleshooting an issue.

issue

The issue is as follows,

Using a brand new app router project, with upload things installed as a dependency. Set up with the bare minimum configuration. I was able to upload images but unable to upload markdown documents.

I was also able to upload text documents but not marked down documents.

resolution

The resolution was opening the windows registry and adding the content type for text/markdown to the .md file type.

reflection

Looking at MDN documentation, developers should not solely rely on the MIME type for validation because depending on the client environment, It can be missing, or different than expected.

I've learned that some windows computers, for whatever reason, have some mime types missing. I don't believe we should expect end users to update their registry, if they're not able to upload some file types.

@KairuDeibisu KairuDeibisu changed the title Design discussion on using mime type Unreliable MIME file types Aug 15, 2023
@markflorkowski markflorkowski added bug: medium priority Something isn't working haunted things that will likely be difficult to test / find root causes on planned We would like this to happen labels Aug 15, 2023
@juliusmarminge juliusmarminge added the area:packages issue regarding one of the uploadthing packages label Oct 21, 2023
@juliusmarminge juliusmarminge added bug: low priority something isn't working as it should, but it's not critical to the core functionality and removed bug: medium priority Something isn't working labels Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:packages issue regarding one of the uploadthing packages bug: low priority something isn't working as it should, but it's not critical to the core functionality haunted things that will likely be difficult to test / find root causes on planned We would like this to happen
Projects
None yet
Development

No branches or pull requests

3 participants