mirror of
https://github.com/FoggedLens/iD.git
synced 2026-04-22 03:36:37 +02:00
only show accepted file types in custom data file chooser
This commit is contained in:
@@ -44,6 +44,7 @@ export function uiSettingsCustomData(context) {
|
||||
.append('input')
|
||||
.attr('class', 'field-file')
|
||||
.attr('type', 'file')
|
||||
.attr('accept', '.gpx,.kml,.geojson,.json,application/gpx+xml,application/vnd.google-earth.kml+xml,application/geo+json,application/json')
|
||||
.property('files', _currSettings.fileList) // works for all except IE11
|
||||
.on('change', function(d3_event) {
|
||||
var files = d3_event.target.files;
|
||||
|
||||
Reference in New Issue
Block a user