# Uploading large videos fails

**URL:** <https://forum.getkirby.com/t/uploading-large-videos-fails/21219>\
**Category:** Questions\
**Tags:** v3\
**Created:** [February 16, 2021, 11:22am UTC](https://forum.getkirby.com/t/uploading-large-videos-fails/21219 "2021-02-16T11:22:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [February 16, 2021, 11:22am UTC](https://forum.getkirby.com/t/uploading-large-videos-fails/21219/1 "2021-02-16T11:22:30Z")

</div>

Running Kirby 3.5.3 locally on Valet, I cant seem to upload files greater than around 128mb. Smaller videos work The memory and upload settings on PHP 7.4 are all set to 512mb and the video im trying is 160mb, so it should work. After testing a few other videos, it seems nothing over arounnd 128 mb works.

If i manually add the file to the content folder, Kirby still fails to read it correctly and detect its mime type.

Any ideas what is going on there?

---

<div class="post-metadata">

**Author:** ![pixelijn](https://avatars.discourse-cdn.com/v4/letter/p/7ab992/32.png) [@pixelijn](https://forum.getkirby.com/u/pixelijn)\
**Post date:** [February 16, 2021, 12:02pm UTC](https://forum.getkirby.com/t/uploading-large-videos-fails/21219/2 "2021-02-16T12:02:57Z")

</div>

I guess that didn’t happen with versions prior to 3.5.3?

---

<div class="post-metadata">

**Author:** ![jimbobrjames](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/jimbobrjames/32/5802_2.png) [@jimbobrjames](https://forum.getkirby.com/u/jimbobrjames)\
**Post date:** [February 16, 2021, 12:11pm UTC](https://forum.getkirby.com/t/uploading-large-videos-fails/21219/3 "2021-02-16T12:11:52Z")

</div>

Finally got to the bottom of it. There is a third setting you need to change. The Valet Nginx config also has a post body max size, which seems to take precedence even if your PHP ini is set to a higher value.

I actually had to modify `usr/local/etc/nginx/valet/valet.conf` which was set to 128mb. Once that was set as well as increasing the 3 limits in the PHP ini, and rebooting, now i can upload stuff.

What a silly error!

> [@pixelijn](#):
>
> I guess that didn’t happen with versions prior to 3.5.3?

Also happened on Kirby 3.4.3 on another project.
