kopia lustrzana https://github.com/OpenDroneMap/WebODM
Change MIME Types for Boundary Load Button
Change IANA MIME Types to be more focused. text/* to text/plain added application/geo+json to add GeoJSON support without needing to use All Files.pull/1118/head
rodzic
9d0f7f2409
commit
12b52a6d6d
|
@ -148,7 +148,7 @@ class ProcessingNodeOption extends React.Component {
|
|||
loadFileControl = ([
|
||||
<button key="btn" type="file" className="btn glyphicon glyphicon-import btn-primary" data-toggle="tooltip" data-placement="left" title={_("Click to import a .JSON file")} onClick={() => this.loadFile()}></button>,
|
||||
<input key="file-ctrl" className="file-control" type="file"
|
||||
accept="text/*,application/json"
|
||||
accept="text/plain,application/json,application/geo+json"
|
||||
onChange={this.handleFileSelect}
|
||||
ref={(domNode) => { this.fileControl = domNode}} />
|
||||
]);
|
||||
|
|
Ładowanie…
Reference in New Issue