Open eyal88 opened 4 years ago
Currently only lowercased file extensions works, even when trying to explicitly allow other cases via formats option like so:
formats
L.Control.fileLayerLoad({ formats: ['.gpx', '.GPX'] }
Loading filename.GPX for example returns a Unsupported file type (GPX) error.
filename.GPX
Unsupported file type (GPX)
With this fix, the following configuration supports both .gpx or .GPX:
.gpx
.GPX
L.Control.fileLayerLoad({ formats: ['.gpx'] }
Currently only lowercased file extensions works, even when trying to explicitly allow other cases via
formats
option like so:Loading
filename.GPX
for example returns aUnsupported file type (GPX)
error.With this fix, the following configuration supports both
.gpx
or.GPX
: