mirror of
https://github.com/outline/outline.git
synced 2026-11-21 05:24:03 +03:00
The file name added to Content-Disposition was written into the header unencoded whenever it fell inside Latin-1, so é, ü and ñ survived as raw high bytes. Request signing hashes header values as UTF-8 while Node writes them as Latin-1, giving the storage provider different bytes to those that were signed, and the upload was rejected. Pass an ASCII-only fallback so any such name is carried in the RFC 5987 filename* parameter instead. Browsers still read the original name from there, so the extension is preserved. Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>