# Use relative URI for GLTF textures with parent directory

**URL:** <https://forum.babylonjs.com/t/use-relative-uri-for-gltf-textures-with-parent-directory/19195>\
**Category:** Questions\
**Created:** [March 15, 2021, 3:20pm UTC](https://forum.babylonjs.com/t/use-relative-uri-for-gltf-textures-with-parent-directory/19195 "2021-03-15T15:20:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nathanidp](https://avatars.discourse-cdn.com/v4/letter/n/e274bd/32.png) [@nathanidp](https://forum.babylonjs.com/u/nathanidp)\
**Post date:** [March 15, 2021, 3:20pm UTC](https://forum.babylonjs.com/t/use-relative-uri-for-gltf-textures-with-parent-directory/19195/1 "2021-03-15T15:20:10Z")

</div>

I’m trying to use a gltf model and use textures that are not in the same directory.

Inside my gltf file I have a reference of an image like this one :

```auto
     "images" : [
        {
            "mimeType" : "image/webp",
            "name" : "Static_BaseColor",
            "uri" : "../textures/Static_BaseColor.webp"
        },

```

I had an error telling me that the uri was invalid. As I searched through the code to understand what is happening I found this part :  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/2X/2/20c70a939cc4fe6ad53dec1f57e7968e7122335f.png)

This says that every uri containing `..` is invalid.  
Why is it blocked ? Is there a way to use Gltf with using this kind of URI ?

---

<div class="post-metadata">

**Author:** ![Deltakosh](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/deltakosh/32/26635_2.png) [@Deltakosh](https://forum.babylonjs.com/u/Deltakosh)\
**Post date:** [March 15, 2021, 6:32pm UTC](https://forum.babylonjs.com/t/use-relative-uri-for-gltf-textures-with-parent-directory/19195/2 "2021-03-15T18:32:00Z")

</div>

This is technically not clearly supported by URLs on the web

Some discusions: [Using relative URLs - Design Issues (w3.org)](https://www.w3.org/DesignIssues/Relative)

In a nutshell it is not recommended to use relative URLs
