FilesInput, Save the Hierarchy of the folder and files for later reference

Is there a quick way to intercept the event that propagates from the drag and drop watch response?

I see that it goes as far as to the loadFiles, but does not seem to bubble past there?

Wait actually reading through the github on this, do we already support whole folder drag and drops?

Ok yes we do… hmmm.

New question. How would could I store the hierarchy of the folders/files that just got uploaded?

It looks like we are storing a property on the File object called correctName: Babylon.js/filesInput.ts at master · BabylonJS/Babylon.js · GitHub

You can probably use that to figure out the hierarchy?

Ooh that might be the ticket

1 Like