I want to be able to import gltf from user input. I don’t want to pull data from my project folder. Anyone who uses the website should be able to import their gltf file from anywhere on their PC. This website provides this functionality by using the built-in DataTransfer function. DataTransfer is used for drag and drop, I don’t want to use drag and drop, I want to choose all files required for gltf file and be able to successfully import gltf.
DataTransfer is just file data API - doesn’t matter if it comes from drag-and-drop or an input.
This is probably what you’re looking for - just add a multiple
attribute to an <input>
element.
1 Like