only show accepted file types in custom data file chooser

This commit is contained in:
Justin Tracey
2022-01-24 19:36:08 -05:00
parent 97ed56bc3a
commit 3ec9a6cb6f
+1
View File
@@ -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;