# GLTF2Export.GLBAsync to specific folder

**URL:** <https://forum.babylonjs.com/t/gltf2export-glbasync-to-specific-folder/31674>\
**Category:** Questions\
**Created:** [June 24, 2022, 5:11pm UTC](https://forum.babylonjs.com/t/gltf2export-glbasync-to-specific-folder/31674 "2022-06-24T17:11:49Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![nogalo](https://sea2.discourse-cdn.com/flex024/user_avatar/forum.babylonjs.com/nogalo/32/120_2.png) [@nogalo](https://forum.babylonjs.com/u/nogalo)\
**Post date:** [June 24, 2022, 11:28pm UTC](https://forum.babylonjs.com/t/gltf2export-glbasync-to-specific-folder/31674/4 "2022-06-24T23:28:43Z")

</div>

Okay. Managed to figure it out. If anyone encounters same scenario in the future, this is my solution. I’ve created a File object on the front and sent the data to the node.js server, where I created a write stream and stored it at the specific location.

// on the front-end  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/c/0/c0e0c5d8b294ee397722de7bcab0b8c01274fe60.png)

// on the back-end  
 ![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/2/9/296ce86ad62f0851e26893ab8aed278a7a6b1958.png)

On the server side, you also need to add middleware for processing request body as a Buffer.

![image](https://us1.discourse-cdn.com/flex024/uploads/babylonjs/original/3X/b/d/bd0184b5d736f87c545727dfd5955c2e9cc2f3ee.png)

Turned out to be fairly simple, but it gave me a lot of headache till this point xD

Thanks for your answer @carolhmj, appreciate it.

Cheers

---

_[View the full topic](https://forum.babylonjs.com/t/gltf2export-glbasync-to-specific-folder/31674)._
