Defect #18667
Attachment content type not set when uploading attachment
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Attachments | |||
Target version: | 2.6.1 | |||
Resolution: | Fixed | Affected version: |
Description
Hi,
I noticed that the attachment content type is not set when uploading an attachment. Do you also experience this behaviour?
I think this is caused by setting the file contents before setting the file name. (The content type is determined by the file name).
I have attached a patch (from my personal Git repo) which resolves this problem.
Regards,
Thomas
Associated revisions
Attachment content type not set when uploading attachment (#18667).
Fixed order syntax for Rails 3 (#18667).
History
#1
Updated by Jean-Philippe Lang over 6 years ago
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Target version set to 2.6.1
- Resolution set to Fixed
Fixed in r13787, thanks for reporting this. The fix was done at model level instead.
#2
Updated by Jean-Philippe Lang over 6 years ago
- Status changed from Resolved to Closed