STL file browser

I think so, it’s even the suggested approach by Mozilla if you want to pick files but don’t want the input element to show: Using files from web applications - Web APIs | MDN (mozilla.org)

1 Like

Okay thank you your confirmation and reference. This clears up my confusion.

I appreciate your direction.

1 Like

Thank you all for this. I was going crazy with how to upload and preview local file assets. In case you are wondering how to solve this with loading mutliple files, like .gltf, this worked for me:

            const assetsManager = new BABYLON.AssetsManager(scene);

            files.forEach(function (el) {
              BABYLON.FilesInput.FilesToLoad[el.name.toLowerCase()] = new Blob([el]);
              assetsManager.addMeshTask(name, "", "file:", el.name);
            })
            assetsManager.load();
3 Likes