# Max upload size Bedrock

**URL:** https://discourse.roots.io/t/max-upload-size-bedrock/19354
**Category:** bedrock
**Created:** 2020-10-22T11:09:29Z
**Posts:** 4

## Post 1 by @Matthew_Luke — 2020-10-22T11:09:29Z

Hi guys, I can see this has been answered for Trellis environments here -[Increase maximum upload size on development env](https://discourse.roots.io/t/increase-maximum-upload-size-on-development-env/7053) - but how do you handle increasing upload file sizes for Bedrock? I tried defining them in application config but it’s not working.

Any help would be much appreciated!

---

## Post 2 by @TangRufus — 2020-10-22T11:34:33Z

Not Bedrock specific.  
You can use the `upload_size_limit` and `wp_handle_upload_prefilter` filters.  
Example: [https://github.com/ItinerisLtd/limit-maximum-upload-file-size/blob/master/limit-maximum-upload-file-size.php](https://github.com/ItinerisLtd/limit-maximum-upload-file-size/blob/master/limit-maximum-upload-file-size.php)

But your server’s php config also limits the max file upload size.  
The lowest value will win.

---

## Post 3 by @strarsis — 2020-10-22T12:40:32Z

For Trellis, it may be necessary to adjust additional settings:

```
php_upload_max_filesize: 100M

# + overhead (should be equal or larger than php_upload_max_filesize)
php_post_max_size: 150M
```

---

## Post 4 by @system — 2020-12-03T11:23:57Z

This topic was automatically closed after 42 days. New replies are no longer allowed.
