diff --git a/3DAmsterdam/Assets/Netherlands3D/Plugins/Jslib/FileUploads.jslib b/3DAmsterdam/Assets/Netherlands3D/Plugins/Jslib/FileUploads.jslib index df921ae38..a4776a947 100644 --- a/3DAmsterdam/Assets/Netherlands3D/Plugins/Jslib/FileUploads.jslib +++ b/3DAmsterdam/Assets/Netherlands3D/Plugins/Jslib/FileUploads.jslib @@ -14,21 +14,22 @@ mergeInto(LibraryManager.library, { window.dbVersion = 21; //Inject our required html input fields - window.InjectHiddenFileInput = function InjectHiddenFileInput(type, acceptedExtentions) { + window.InjectHiddenFileInput = function InjectHiddenFileInput(type, acceptedExtentions, multiFileSelect) { var newInput = document.createElement("input"); newInput.id = type + '-input'; newInput.type = 'file'; newInput.accept = acceptedExtentions; + newInput.multiple = multiFileSelect; newInput.onchange = function () { window.ReadFiles(this.files); }; newInput.style.cssText = 'display:none; cursor:pointer; opacity: 0; position: fixed; bottom: 0; left: 0; z-index: 2; width: 0px; height: 0px;'; document.body.appendChild(newInput); }; - window.InjectHiddenFileInput('obj', '.obj,.mtl'); - window.InjectHiddenFileInput('csv', '.csv,.tsv'); - window.InjectHiddenFileInput('fzp', '.fzp'); - window.InjectHiddenFileInput('geojson', '.json,.geojson'); + window.InjectHiddenFileInput('obj', '.obj,.mtl', true); + window.InjectHiddenFileInput('csv', '.csv,.tsv', false); + window.InjectHiddenFileInput('fzp', '.fzp', false); + window.InjectHiddenFileInput('geojson', '.json,.geojson', false); //Support for dragging dropping files on browser window document.addEventListener("dragover", function (event) {