I am using private download method. The problem is attached files open in browsers (Mozilla, Opera, Explorer) like a plain text instead of downloading. The problem seems to be related with MIME TYPE.
However
- attachments in node open properly
- attachments in comments open properly at a step of preview of comments, but after saving they appear as a plain text
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | cu358368-content-type.patch | 785 bytes | heine |
Comments
Comment #1
heine commentedWhat mime types are affected? With "attachments in node open properly", do mean that *newly* uploaded files of the same type are downloaded by the browser?
Can you please try todays 5.x-1.x-dev (it may take a while for it to regenerate)? This contains a fix that may solve this issue.
Comment #2
Yurab commentedTo get the problem solved I added the following code (module comment_upload.module):
'Content-Disposition: attachment; filename='.$file->filename,
That is why I did not try to use offered patch.
Comment #3
heine commented