-
Notifications
You must be signed in to change notification settings - Fork 424
[bug]: KMZ File Upload Not Recognized When Specified as MIME Type #949
Copy link
Copy link
Open
Labels
area:packagesissue regarding one of the uploadthing packagesissue regarding one of the uploadthing packagesbug: low prioritysomething isn't working as it should, but it's not critical to the core functionalitysomething isn't working as it should, but it's not critical to the core functionalityhauntedthings that will likely be difficult to test / find root causes onthings that will likely be difficult to test / find root causes on✨ enhancementsuggestion or feature request to improve uploadthingsuggestion or feature request to improve uploadthing
Metadata
Metadata
Assignees
Labels
area:packagesissue regarding one of the uploadthing packagesissue regarding one of the uploadthing packagesbug: low prioritysomething isn't working as it should, but it's not critical to the core functionalitysomething isn't working as it should, but it's not critical to the core functionalityhauntedthings that will likely be difficult to test / find root causes onthings that will likely be difficult to test / find root causes on✨ enhancementsuggestion or feature request to improve uploadthingsuggestion or feature request to improve uploadthing
Provide environment information
System: OS: macOS 14.6.1 CPU: (8) arm64 Apple M1 Pro Memory: 1.99 GB / 16.00 GB Shell: 3.3.1 - /usr/local/bin/fish Binaries: Node: 20.11.1 - ~/.nvm/versions/node/v20.11.1/bin/node npm: 10.2.4 - ~/.nvm/versions/node/v20.11.1/bin/npm pnpm: 9.10.0 - ~/Library/pnpm/pnpm Browsers: Brave Browser: 128.1.69.162 Chrome: 128.0.6613.137 Safari: 17.6 Safari Technology Preview: 18.0 npmPackages: @uploadthing/react: ^7.0.1 => 7.0.1 typescript: ^5.6.2 => 5.6.2 uploadthing: ^7.0.1 => 7.0.1Describe the bug
When attempting to upload a file with the .kmz extension, the file is not being picked up by UT even if the correct application/vnd.google-earth.kmz+xml MIME type is specified. Moreover, when the file picker dialog shows up, the other non *.kmz files are not disabled. This issue occurs even though other file types work as expected with their corresponding MIME types.
Link to reproduction
https://stackblitz.com/edit/github-kaem89
To reproduce
Click on "Choose File" to select a .kml file to upload.
=> Nothing happens.
However, changing the MIME type to "blob" allows the .kml (or any file) to be uploaded successfully.
Additional information
Bug is reproducible on both latest and legacy versions of UT.
https://x.com/oliveroxenham/status/1834803745894670599
👨👧👦 Contributing
Code of Conduct