# Is there a file size limit?

**URL:** <https://community.transloadit.com/t/is-there-a-file-size-limit/15115>\
**Category:** Uppy\
**Created:** [November 7, 2019, 11:11pm UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115 "2019-11-07T23:11:51Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jaequery](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jaequery](https://community.transloadit.com/u/jaequery)\
**Post date:** [November 7, 2019, 11:11pm UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115/1 "2019-11-07T23:11:51Z")

</div>

Hello, I need to upload very large files (5GB+) to S3.  
I was wondering, does Uppy have any caps on how large the file can be?

---

<div class="post-metadata">

**Author:** ![jaequery](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jaequery](https://community.transloadit.com/u/jaequery)\
**Post date:** [November 8, 2019, 1:14am UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115/2 "2019-11-08T01:14:48Z")

</div>

So it turns out, looks like there is a limit as I just tried uploading a 25 GB file and at the end I received this error message:

expected: 336824,  
length: 336824,  
limit: 102400,  
type: ‘entity.too.large’,  
expose: true,  
statusCode: 413,  
status: 413

This is a bit of a setback and it’s puzzling because 5GB worked fine.  
What is the file size limit and is there anyway to get around it?

Files I need to upload are usually in the 25GB to 50GB range.

---

<div class="post-metadata">

**Author:** ![jaequery](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jaequery](https://community.transloadit.com/u/jaequery)\
**Post date:** [November 8, 2019, 1:25am UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115/3 "2019-11-08T01:25:12Z")

</div>

I used the Uppy.AwsS3Multipart btw.

Hope to hear some answers soon, thanks.

---

<div class="post-metadata">

**Author:** ![goto-bus-stop](https://yyz2.discourse-cdn.com/flex032/user_avatar/community.transloadit.com/goto-bus-stop/32/18_2.png) [@goto-bus-stop](https://community.transloadit.com/u/goto-bus-stop)\
**Post date:** [November 8, 2019, 8:55am UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115/4 "2019-11-08T08:55:14Z")

</div>

What request showed that error message? I don’t believe we have any explicit size limits anywhere. If something in Uppy or Companion is causing that error, it would be a bug.

---

<div class="post-metadata">

**Author:** ![jaequery](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jaequery](https://community.transloadit.com/u/jaequery)\
**Post date:** [November 8, 2019, 6:39pm UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115/5 "2019-11-08T18:39:48Z")

</div>

I got that message after the file was done uploading, it said Error, so I checked the console and that is what I saw.  
I will try another one and paste the entire output.

---

<div class="post-metadata">

**Author:** ![jaequery](https://avatars.discourse-cdn.com/v4/letter/j/a3d4f5/32.png) [@jaequery](https://community.transloadit.com/u/jaequery)\
**Post date:** [November 8, 2019, 7:50pm UTC](https://community.transloadit.com/t/is-there-a-file-size-limit/15115/6 "2019-11-08T19:50:27Z")

</div>

Somewhat different error now, but I am getting this:

```auto
POST http://localhost:3020/s3/multipart/OnZH0aCiroTR5DeF1nzDYu3kgsAom5Xx4izbDKrAJUXc0zOrblrh7VVsizLZ3s3lzAVPJejqa4Us_BAx_2Fu9hGvGQS_wtA5iNYao4GVw9lRVBYnTsotzmlr23PNOK7o/complete?key=test_15gb.dat net::ERR_ABORTED 413 (Payload Too Large)

upload:1 Access to fetch at 'http://localhost:3020/s3/multipart/OnZH0aCiroTR5DeF1nzDYu3kgsAom5Xx4izbDKrAJUXc0zOrblrh7VVsizLZ3s3lzAVPJejqa4Us_BAx_2Fu9hGvGQS_wtA5iNYao4GVw9lRVBYnTsotzmlr23PNOK7o/complete?key=test_15gb.dat' from origin 'http://localhost:3001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

```

As you can see, I getting 2 errors:

1. 413 payload too large
2. CORS error

I am able to upload small files fine but when uploading large files \> 5GB, I get these errors?

You can check this screenshot if it’s helpful: [https://share.getcloudapp.com/lluwO2Bz](https://share.getcloudapp.com/lluwO2Bz)
