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

CommentFileSizeAuthor
#1 cu358368-content-type.patch785 bytesheine

Comments

heine’s picture

Assigned: Yurab » Unassigned
StatusFileSize
new785 bytes

What 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.

Yurab’s picture

To 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.

heine’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.