KenEucker / biketag-vue

A vue app for the game of BikeTag played worldwide at biketag.org including the published biketag-vue component library
https://biketag.org
GNU Affero General Public License v3.0
22 stars 13 forks source link

[BUG] coordinates error in the console blocking uploads #209

Closed KenEucker closed 9 months ago

KenEucker commented 10 months ago

Describe the bug Players are reporting issues with getting uploads to work. One Player was able to provide a screenshot of the error in the console. This appears to do with the retrieval of GPS coordinates from the selected image.

Expected behavior The upload should succeed no matter what, even if the GPS retrieval fails.

Screenshots Screenshot_from_2024-01-01_23-51-17

Additional context Additionally, Players are reporting that they no longer see the map popup for choosing the pin of the found location.

cookieguru commented 9 months ago

Hopefully #210 fixes this. The underlying issue may be that the browser is stripping metadata (for privacy): https://github.com/josephfrazier/reported-web/pull/360

cookieguru commented 9 months ago

Can confirm that removing the accept attribute will allow exifr to properly read the metadata. i.e. latitude and longitude are NaN when the attribute is present, and they are numbers when the attribute is absent. Which is pretty annoying, since that attribute hints to the browser which kinds of files are allowed and what kind of file picker to show.

KenEucker commented 9 months ago

Hmmm. That's unfortunate. I wonder why it happens sometimes.

KenEucker commented 9 months ago

This has been resolved.