# What is the maximum allowed object size?

**URL:** <https://answers.netlify.com/t/what-is-the-maximum-allowed-object-size/145182>\
**Category:** Support\
**Tags:** deployment\
**Created:** [April 19, 2025, 7:51pm UTC](https://answers.netlify.com/t/what-is-the-maximum-allowed-object-size/145182 "2025-04-19T19:51:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lol](https://avatars.discourse-cdn.com/v4/letter/l/5daacb/32.png) [@lol](https://answers.netlify.com/u/lol)\
**Post date:** [April 19, 2025, 7:51pm UTC](https://answers.netlify.com/t/what-is-the-maximum-allowed-object-size/145182/1 "2025-04-19T19:51:31Z")

</div>

`The document exceeds maximum allowed BSON object size after serialization`  
Ran into this issue while attempting to deploy my site to Netlify. I removed some of the larger files and the deploy succeeded. What is the maximum file size that can be uploaded in a deploy? I can’t seem to find this in the documentation. Thanks!

---

<div class="post-metadata">

**Author:** ![marcus.little](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/marcus.little/32/49084_2.png) [@marcus.little](https://answers.netlify.com/u/marcus.little)\
**Post date:** [May 6, 2025, 4:12pm UTC](https://answers.netlify.com/t/what-is-the-maximum-allowed-object-size/145182/2 "2025-05-06T16:12:39Z")

</div>

Hey there! Typically, you’ll see this error when [uploading too many files in a subdirectory](https://answers.netlify.com/t/document-exceeds-maximum-bson-object-size/124620/8), or when the size of the deploy overall starts to reach a few hundred thousand files. Regarding individual files, the recommended size for uploading to deploys is [no more than 10MB](https://docs.netlify.com/configure-builds/troubleshooting-tips/#large-files-or-sites).
