# 使用调整大小工具时图片上传错误

**URL:** https://meta.discourse.org/t/image-upload-error-when-using-resizer/142316
**Category:** Bug
**Created:** [2020年二月22日 01:08 UTC](https://meta.discourse.org/t/image-upload-error-when-using-resizer/142316 "2020-02-22T01:08:47Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [2020年二月22日 01:25 UTC](https://meta.discourse.org/t/image-upload-error-when-using-resizer/142316/2 "2020-02-22T01:25:27Z")

</div>

> [@AstonJ](#):
>
> 编辑：我刚刚在“最大图片大小（KB）”选项下也注意到了这一点：
> 
> > 最大图片上传大小（单位：KB）。这同样需要在 nginx（client\_max\_body\_size）/ Apache 或代理中进行配置。
> 
> 我想我还没有做过这个设置——这会不会是原因？（有没有在哪里编辑这个设置的示例？）

您可以通过在站点的 `app.yml` 文件中添加 `upload_size` 参数来增加该值。详见 [https://meta.discourse.org/t/changing-max-attachment-size/26435。](https://meta.discourse.org/t/changing-max-attachment-size/26435%E3%80%82)

---

_[View the full topic](https://meta.discourse.org/t/image-upload-error-when-using-resizer/142316)._
