# 上传至 S3 克隆时出现 Broken pipe 错误，PDF 文件名包含 é、ï 等字符

**URL:** <https://meta.discourse.org/t/broken-pipe-error-when-uploading-to-a-s3-clone-a-pdf-with-a-name-containing-e-i-etc/155414>\
**Category:** Bug\
**Created:** [2020 年6 月 20 日 06:20 UTC](https://meta.discourse.org/t/broken-pipe-error-when-uploading-to-a-s3-clone-a-pdf-with-a-name-containing-e-i-etc/155414 "2020-06-20T06:20:21Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![martin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/martin/32/491371_2.png) [@martin](https://meta.discourse.org/u/martin)\
发布日期： [2020 年6 月 23 日 06:21 UTC](https://meta.discourse.org/t/broken-pipe-error-when-uploading-to-a-s3-clone-a-pdf-with-a-name-containing-e-i-etc/155414/6 "2020-06-23T06:21:19Z")

</div>

> [@Benjamin\_D](#):
>
> d **é** croissance.pdf

此处修复即将合并。已使用上述 PDF 文件名进行测试，运行正常：ok\_hand:。修复即将上线！

> <https://github.com/discourse/discourse/pull/10108>
>
> See https://meta.discourse.org/t/broken-pipe-error-when-uploading-to-a-s3-clone-…a-pdf-with-a-name-containing-e-i-etc/155414
> 
> \* When setting content-disposition for attachment, use the ContentDisposition class to format it. This handles filenames with weird characters and localization (accented characters) correctly.

---

_[View the full topic](https://meta.discourse.org/t/broken-pipe-error-when-uploading-to-a-s3-clone-a-pdf-with-a-name-containing-e-i-etc/155414)._
