Body:
Hi Babylon.js team ![]()
I’m building a web-based React + Babylon.js app where users upload .gltf models along with their external resources like .bin and .png files.
I use the following setup:
ts
selectedFiles.forEach(file => {
FilesInputStore.FilesToLoad[file.name] = file;
});
SceneLoader.ImportMeshAsync(
null,
'file:',
gltfFile,
scene,
null,
'.gltf'
);
All the uploaded filenames exactly match what’s referenced inside the .gltf file — except for case sensitivity.
For example:
- The
.gltfrefers to"uri": "textura.png" - The uploaded file is named
TEXTURA.png
Despite this, I get errors like:
pgsql
Not allowed to load local resource: file://textura.png
Even though "textura.png" is present in FilesToLoad with original case (TEXTURA.png), Babylon seems not to find it unless the casing is identical.
Questions:
- Is Babylon’s URI resolution for
FilesToLoadcase-sensitive? - Is there any way to hook or override the lookup logic so it can be case-insensitive?
- Would you recommend modifying the
.gltf"uri"fields programmatically before loading? - Are there any official utilities or community tools for handling
.gltffile + resource uploads robustly in the browser?
Any help would be greatly appreciated ![]()