Open oliverox opened 3 days ago
Can you provide sample .kmz
and .kml
files I can test with?
I sure can. I am currently travelling but will share as soon as I get some internet access.
You can get a KML file here: https://utfs.io/f/5Bp1JPFX6nSx9Vh6JEMecTo7vnCiflpF1Q8WNHYE3J4DKS6u
Will take a look at this tomorrow morning!
it appears my computer doesn't recognize the mime-type here:
Yeah, confirmed on mimtype.io, seems like browser does not detect.
We could potentially build in functionality to the components to handle cases like these, though we wouldn't be able to get the filtering in the file selection window, just pre-upload validation.
Provide environment information
Describe 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