# About uploading 3dtile to Cesium

**URL:** <https://community.cesium.com/t/about-uploading-3dtile-to-cesium/31689>\
**Category:** Cesium ion\
**Created:** [April 24, 2024, 6:23am UTC](https://community.cesium.com/t/about-uploading-3dtile-to-cesium/31689 "2024-04-24T06:23:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![peng\_chen](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/peng_chen/32/23179_2.png) [@peng\_chen](https://community.cesium.com/u/peng_chen)\
**Post date:** [April 24, 2024, 6:23am UTC](https://community.cesium.com/t/about-uploading-3dtile-to-cesium/31689/1 "2024-04-24T06:23:10Z")

</div>

When I upload the 3dtile to Cesium, I need to wait for the tileset to finish loading before I can move the camera to the model, my method is as follows：

tileset.await.then(function (tileset) {  
viewer.zoomTo(tileset);  
}).catch(function (error) {  
console.error('Error: ', error);  
});

but problem is that Uncaught TypeError: Cannot read properties of undefined (reading ‘then’)

Who was able to give the correct code, thanks

---

<div class="post-metadata">

**Author:** ![mdc9001](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/mdc9001/32/15919_2.png) [@mdc9001](https://community.cesium.com/u/mdc9001)\
**Post date:** [April 24, 2024, 3:18pm UTC](https://community.cesium.com/t/about-uploading-3dtile-to-cesium/31689/2 "2024-04-24T15:18:20Z")

</div>

Hi,

Welcome to the Cesium community @peng_chen

You can find an example of how to load and view data in ion by going to the _View complete code example_ link in the asset details panel. Here is an example of viewing a 3D tileset asset.

```js
const tileset = await Cesium.Cesium3DTileset.fromIonAssetId(<insert your id here>);
viewer.scene.primitives.add(tileset);
await viewer.zoomTo(tileset);

```
