How to validate gltf textures and bin files how three js Gltf is validating if all textures are present in the uploaded directory or not??? it also gives error if some texture file is not present.

Try it with this npm package:

this is not working in react js for browser!

         import * as validator from 'gltf-validator';
              .then((response) => response.arrayBuffer())
              .then((asset) => validator.validateBytes(new Uint8Array(asset)))
              .then((report) => console.log('Validation succeeded: ', report))
              .catch((error) => console.error('Validation failed: ', error));

everytime getting error -> Invalid data: could not detect glTF format

SketchFab GLTF file : Gltf File