# Asset Upload Unexpected Error

**URL:** <https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658>\
**Category:** Extensions\
**Created:** [July 30, 2023, 9:34pm UTC](https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658 "2023-07-30T21:34:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigman24x7](https://avatars.discourse-cdn.com/v4/letter/b/a6a055/32.png) [@bigman24x7](https://staging-discuss.dev.twitch.com/u/bigman24x7)\
**Post date:** [July 30, 2023, 9:34pm UTC](https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658/1 "2023-07-30T21:34:18Z")

</div>

Anyone seen an issue of where uploading assets shows a green button, but then shows an error. The upload is never reflected in the console and there are no new errors in the browser’s developer consoles.  
 ![image](https://d2spem0quai2ol.cloudfront.net/original/3X/0/6/06d7b6ce7a26a14c0edadc4610ac63211aaa47be.png)

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 31, 2023, 10:25am UTC](https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658/2 "2023-07-31T10:25:43Z")

</div>

usual suspects to try and check

- check your zip file isn’t too big
- check your zip file contains only the relevant static HTML/JS/CSS/any images you need for your extension
- logout and back into the dev console
- check this version is in local test

---

<div class="post-metadata">

**Author:** ![bigman24x7](https://avatars.discourse-cdn.com/v4/letter/b/a6a055/32.png) [@bigman24x7](https://staging-discuss.dev.twitch.com/u/bigman24x7)\
**Post date:** [July 31, 2023, 11:51am UTC](https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658/3 "2023-07-31T11:51:33Z")

</div>

I’m using the React boilerplate code with some of my own JS files. I’ve tried removing my custom files, but the same result. What is the size limit? It would help if they returned an informative error message.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [July 31, 2023, 11:53am UTC](https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658/4 "2023-07-31T11:53:24Z")

</div>

So you ran `npm dist` (or whatever the complie command is)

Zipped the resultant contents of the `dist` folder (if it ouputs to there)

And uploaeded those contents?

> [@bigman24x7](#):
>
> It would help if they returned an informative error message.

for sure

> [@bigman24x7](#):
>
> What is the size limit?

Not sure, since it’s not documented, most extensions shouldn’t hit it unless they have a tonne of unneeded files or many big images.

But when people get errors we note it in case OP goes “oh I built the zip wrong”

---

<div class="post-metadata">

**Author:** ![bigman24x7](https://avatars.discourse-cdn.com/v4/letter/b/a6a055/32.png) [@bigman24x7](https://staging-discuss.dev.twitch.com/u/bigman24x7)\
**Post date:** [July 31, 2023, 1:48pm UTC](https://staging-discuss.dev.twitch.com/t/asset-upload-unexpected-error/46658/5 "2023-07-31T13:48:05Z")

</div>

It’s npm run build and zipping the contents of the dist directory. That fixed it. Thanks.
