Roundcube Community Forum

 

Unable to display an PDF file attached, only download it

Started by Drakon, January 22, 2013, 10:34:46 AM

Previous topic - Next topic

Drakon

Hi crew!

Normally I have e-mails with PDF attached. Internally I have: Content-Type: application/pdf; name="name_of_file.pdf". If I click on the attachment my browser (Google Chrome) opens a new window and show the content of PDF file embedding it. It's OK.

Sometimes I receive e-mails with PDF attached and internally I have: Content-Type: application/octet-stream; name="name_of_file.pdf" and I cannot preview on a new window, only download. If I change "application/octet-stream" by "application/pdf" works fine and the browser opens the file in a new window.

Can you fix the problem?

Regards.

SKaero


Drakon

I supose that Roundcube needs to differentiate between "application/octet-stream" with filename with PDF/JPG/PNG... file extensions and "application/octet-stream" with others.

Ideally that Roundcube replaces "application/octet-strem" with PDF/JPG/PNG.. by "application/pdf" or ".../jpg", or ".../png", etc because if I change "application/octet-stream" by "application/pdf" with a text editor Roundcube works fine and opens the attachment in a new window.

It would be nice fix this...