Skip to content

Conversation

@networkException
Copy link

Purpose

This pull request changes the Content-Disposition header set on S3 PutObject requests when uploading attachments to be encoded using a Django helper, properly encoding UTF-8 in filenames.

This fixes compatibility for uploading attachments with non ASCII file names to Garage, since the HTTP library used by Garage validates that HTTP Headers are ASCII only.

Proposal

External contributions

Thank you for your contribution! 🎉

Please ensure the following items are checked before submitting your pull request:

  • I have read and followed the contributing guidelines
  • I have read and agreed to the Code of Conduct
  • I have signed off my commits with git commit --signoff (DCO compliance)
  • I have signed my commits with my SSH or GPG key (git commit -S)
  • My commit messages follow the required format: <gitmoji>(type) title description
  • I have added a changelog entry under ## [Unreleased] section (if noticeable change)
  • I have added corresponding tests for new features or bug fixes (if applicable)

This patch changes the Content-Disposition header set on S3 PutObject
requests when uploading attachments to be encoded using a Django helper,
properly encoding UTF-8 in filenames.

This fixes compatibility for uploading attachments with non ASCII file names
to Garage, since the HTTP library used by Garage validates that HTTP Headers
are ASCII only.

Signed-off-by: networkException <git@nwex.de>
@networkException networkException force-pushed the putobject-content-disposition-encoding branch from 81d84c0 to 6979757 Compare January 16, 2026 23:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant