# 1MB File size restriction

**URL:** <https://forum.codecrafters.io/t/1mb-file-size-restriction/250>\
**Category:** Announcements\
**Created:** [May 2, 2024, 5:01pm UTC](https://forum.codecrafters.io/t/1mb-file-size-restriction/250 "2024-05-02T17:01:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [May 2, 2024, 5:01pm UTC](https://forum.codecrafters.io/t/1mb-file-size-restriction/250/1 "2024-05-02T17:01:57Z")

</div>

Hi everyone!

We recently pushed a change to restrict the size of files pushed to be a maximum of 1MB. This helps prevent accidentally committing compiled binaries or other large files.

If you run into this, the error message is currently going to be a bit cryptic. You’ll see something like `HTTP status 413, push rejected`. We’re working on making this more friendly.

If one of your older repositories had such large files, we’ve emailed you with details + a backup of your code in case you need it.

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [May 7, 2024, 7:57pm UTC](https://forum.codecrafters.io/t/1mb-file-size-restriction/250/2 "2024-05-07T19:57:44Z")

</div>

We’re working on improving the error message here. A fix should go later this week that will look like this:

 ![Screenshot 2024-05-07 at 20.15.35](https://canada1.discourse-cdn.com/flex003/uploads/codecrafters/original/1X/b8e42781912b28e1445632b997455209ccf907a6.png)

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [May 7, 2024, 8:00pm UTC](https://forum.codecrafters.io/t/1mb-file-size-restriction/250/3 "2024-05-07T20:00:31Z")

</div>

In the meantime if you’re running into this, this most likely means that you have a large file (\> 1MB) that isn’t ignored via `.gitignore`.

If the file is on the latest commit, just deleting + amending the last commit should work. If they’re on commits before the latest one, you might need to edit history — [BFG Repo-Cleaner by rtyley](https://rtyley.github.io/bfg-repo-cleaner/) can help.

If you’re unable to identify the large file, feel free to send us a `.zip` of your repository to [hello@codecrafters.io](mailto:hello@codecrafters.io), and we’ll take a look!

---

<div class="post-metadata">

**Author:** ![rohitpaulk](https://yyz1.discourse-cdn.com/flex003/user_avatar/forum.codecrafters.io/rohitpaulk/32/6_2.png) [@rohitpaulk](https://forum.codecrafters.io/u/rohitpaulk)\
**Post date:** [May 17, 2024, 7:17pm UTC](https://forum.codecrafters.io/t/1mb-file-size-restriction/250/4 "2024-05-17T19:17:11Z")

</div>

The new error message should be live now! We also have a guide on how to fix this:

> **[Large files found - CodeCrafters](https://docs.codecrafters.io/troubleshooting/large-files)**
>
> Instructions on resolving error related to large files
