When I try to give this a file which is not a gpx file (for example a jpeg or a cvs file) I get errors that show that no real validation is happening:
gpx.js:262 Uncaught DOMException: Failed to execute 'open' on 'XMLHttpRequest': Invalid URL
at e._load_xml (http://test.localhost:8021/static/bow/leaflet-gpx/gpx.js:262:9)
at e._parse (http://test.localhost:8021/static/bow/leaflet-gpx/gpx.js:291:12)
at e.initialize (http://test.localhost:8021/static/bow/leaflet-gpx/gpx.js:91:12)
at new e (http://test.localhost:8021/static/bow/leaflet/dist/leaflet.js:5:2745)
at FileReader.<anonymous> (http://test.localhost:8021/kalendar/:600:19)
gpx.js:270 GET http://test.localhost:8021/kalendar/-----BEGIN%20PGP%20PUBLIC%20KEY%20BLOCK…gg70ajn5b5VHPvrw3poywoe/Q===Ct9S-----END%20PGP%20PUBLIC%20KEY%20BLOCK----- 414 (Request-URI Too Long)
When I try to give this a file which is not a gpx file (for example a jpeg or a cvs file) I get errors that show that no real validation is happening: