mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
Previously, the `user_file.content_type` only contained the MIME type of the uploaded file; no other parameters were included, meaning that a file a client specified as `content-type: text/plain; charset=big5` would be stored with an `Attachment.content_type` of `text/plain`. Re-construct the full content-type header from `content_type_extra`, which includes those parameters. We do not include a test because Django does not support specifying such parameters in the upload path.