# Uploading a 1MB PDF I'm getting « upload is too big, maximum is 4MB »

**URL:** <https://meta.discourse.org/t/uploading-a-1mb-pdf-im-getting-upload-is-too-big-maximum-is-4mb/240391>\
**Category:** Product Support\
**Created:** [September 29, 2022, 12:37pm UTC](https://meta.discourse.org/t/uploading-a-1mb-pdf-im-getting-upload-is-too-big-maximum-is-4mb/240391 "2022-09-29T12:37:58Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![Julien\_Palard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/julien_palard/32/198784_2.png) [@Julien\_Palard](https://meta.discourse.org/u/Julien_Palard)\
**Post date:** [September 30, 2022, 8:57am UTC](https://meta.discourse.org/t/uploading-a-1mb-pdf-im-getting-upload-is-too-big-maximum-is-4mb/240391/9 "2022-09-30T08:57:20Z")

</div>

The nginx default for [client\_max\_body\_size](https://nginx.org/en/docs/http/ngx_http_core_module.html#client_max_body_size) is 1MB, client-side rescaled jpegs are all under 1MB, everything become clear.

I fixed my nginx config: [Set client\_max\_body\_size to 4m to match Discourse configuration. · AFPy/infra@861af29 · GitHub](https://github.com/AFPy/infra/commit/861af29c7d7244d8ed3b2cb068a3f047171d4659)

And it now works. You were right: it was my reverse proxy.

Thank you all ❤ and sorry for the noise!

---

_[View the full topic](https://meta.discourse.org/t/uploading-a-1mb-pdf-im-getting-upload-is-too-big-maximum-is-4mb/240391)._
