# Is it possible to use ImportMesh to get a glb from my pc without using a local host

**URL:** https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310
**Category:** Questions
**Created:** [October 5, 2021, 11:35am UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310 "2021-10-05T11:35:32Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Kyubey](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/kyubey/32/18974_2.png) [@Kyubey](https://forum.babylonjs.com/u/Kyubey)
#### Post date: [October 5, 2021, 11:35am UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310/1 "2021-10-05T11:35:32Z")

</div>

Hi, my problem is that my glb files are a little too big for github so i was hoping for a solution to load with them with imporMesh from a pc instead from a server, and i wanted to know if there was any solution to do that in any simple way, maybe without using a localHost.

---

<div class="post-metadata">

### Author: ![RaananW](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/raananw/32/28955_2.png) [@RaananW](https://forum.babylonjs.com/u/RaananW)
#### Post date: [October 5, 2021, 12:01pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310/2 "2021-10-05T12:01:52Z")

</div>

Hi Kyubey, welcome to the babylon forum!

Theoretically you can use the file:// protocol, but AFAIK most browsers are not happy about enabling it and it requires flags on startup to work correctly.  
What you can do is use the file API to load the file and convert it to a URL (probably using [URL.createObjectURL() - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/URL/createObjectURL)) and then use this URL to load the model just like you load any other resource.

---

<div class="post-metadata">

### Author: ![labris](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/labris/32/12576_2.png) [@labris](https://forum.babylonjs.com/u/labris)
#### Post date: [October 5, 2021, 1:37pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310/3 "2021-10-05T13:37:11Z")

</div>

You can put your glb file to Dropbox - [Using External Assets In the Playground | Babylon.js Documentation](https://doc.babylonjs.com/toolsAndResources/tools/playground/externalPGAssets#from-dropboxcom) - or try to host it at some another cloud service.

---

<div class="post-metadata">

### Author: ![bozworth](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/bozworth/32/6484_2.png) [@bozworth](https://forum.babylonjs.com/u/bozworth)
#### Post date: [October 5, 2021, 5:16pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310/4 "2021-10-05T17:16:24Z")

</div>

its simple to just have a local host 🙂

python http.server just spins up a server in whatever folder you call it in

or

node express with a few lines

---

<div class="post-metadata">

### Author: ![sebavan](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/sebavan/32/57_2.png) [@sebavan](https://forum.babylonjs.com/u/sebavan)
#### Post date: [October 5, 2021, 5:51pm UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310/5 "2021-10-05T17:51:29Z")

</div>

If you have node installed you can do:

npx http-server and boom the directory the command runs in is available on a server.

---

<div class="post-metadata">

### Author: ![Dannis](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/dannis/32/24062_2.png) [@Dannis](https://forum.babylonjs.com/u/Dannis)
#### Post date: [April 25, 2022, 2:34am UTC](https://forum.babylonjs.com/t/is-it-possible-to-use-importmesh-to-get-a-glb-from-my-pc-without-using-a-local-host/24310/6 "2022-04-25T02:34:42Z")

</div>

Use nginx to setup an http server and load it from [http://localhost/](http://localhost/)…
