# Unable to include .glb file in module resources, or webapps/main folder

**URL:** <https://forum.inductiveautomation.com/t/unable-to-include-glb-file-in-module-resources-or-webapps-main-folder/34473>\
**Category:** Module Development\
**Created:** [May 6, 2020, 4:33am UTC](https://forum.inductiveautomation.com/t/unable-to-include-glb-file-in-module-resources-or-webapps-main-folder/34473 "2020-05-06T04:33:57Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [May 6, 2020, 4:33am UTC](https://forum.inductiveautomation.com/t/unable-to-include-glb-file-in-module-resources-or-webapps-main-folder/34473/1 "2020-05-06T04:33:57Z")

</div>

I am trying to pull a .glb or .gltf file into perspective and visualize it through WebGL

I have managed to setup the WebGL component, create objects in it in the runtime, and interact with them in the browser.

However I am unable to access the two file types mentioned above in the module. I have tried putting them in the /res/modulealias/img folder that the example uses, as well as in /webapps/main and in both cases I receive an error stating the following two errors:

```auto
onerrorLogger: {"stack":"TypeError: Cannot read property 'response' of undefined\n at http://localhost:8088/res/ThreeDViewer/ThreeDViewer.js?no_cache=1588739061627:41007:25\n at XMLHttpRequest.<anonymous> (http://localhost:8088/res/perspective/xhr-length-computable.min.js:3:10)","message":"Cannot read property 'response' of undefined","name":"TypeError","logData":{"msg":"Uncaught Exception","errorMsg":"Uncaught TypeError: Cannot read property 'response' of undefined","url":"http://localhost:8088/res/ThreeDViewer/ThreeDViewer.js?no_cache=1588739061627","line number":41007,"column":25}}

```

```auto
ThreeDViewer.js?no_cache=1588739061627:41007 Uncaught TypeError: Cannot read property 'response' of undefined
    at ThreeDViewer.js?no_cache=1588739061627:41007
    at XMLHttpRequest.<anonymous> (xhr-length-computable.min.js:3)

```

I know by default not all MIME types are enabled in a default website setup in IIS, I am not sure how its managed with Ignition but is there any chance that Ignition’s webserver is not allowing these two file types through by default? And if that is the case, is there a way to change that in the module configuration?

Thanks for any help,  
Keith G.

UPDATE: I also have tried pointing to a folder on the drive directly, and learned that browsers do not like that

Second Update: I dont recieve any errors in the designer, just the following console log item:

```auto
17:19:54.033 [Browser Events Thread] INFO Perspective.Designer.BrowserConsole - [object ProgressEvent]

```

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [May 7, 2020, 6:38pm UTC](https://forum.inductiveautomation.com/t/unable-to-include-glb-file-in-module-resources-or-webapps-main-folder/34473/2 "2020-05-07T18:38:39Z")

</div>

This turned out to be a bug in one of the source files for threejs not Ignition!
