Hi,
In default, attachment will be downloaded. I follow the link below to set the attachment open in browser instead of download but failed. May I know any clue to make it works?
phpmyfaq version: 2.8.19
OS: centos
browser: chrome
viewtopic.php?f=2&t=16504&p=44378&hilit ... iew#p44378
Thanks,
newbie
attachment shown in browser
Moderator: Thorsten
Re: attachment shown in browser
From the code, attachment will shown as "index.php?action=attachment&id=3" without any mime_type information which browser can't determine what kind of attachment it is. Is it the reason why browser will only download no matter what attachment it is? Anyway to fix it?
Thanks.
Thanks.
Re: attachment shown in browser
Hi,
PDFs will be shown inline for me on OS X.
bye
Thorsten
PDFs will be shown inline for me on OS X.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: attachment shown in browser
Hi,
All type of attachment, even image, will be downloaded instead of viewed in browser in Windows environment. Do you have any idea?
Thanks,
rioz
All type of attachment, even image, will be downloaded instead of viewed in browser in Windows environment. Do you have any idea?
Thanks,
rioz
Re: attachment shown in browser
Hi,
re-checked the code, the attachments are not returned inline. But it can be done, open attachment.php in the root folder, go to line 85 () and change the code from
to
bye
Thorsten
re-checked the code, the attachments are not returned inline. But it can be done, open attachment.php in the root folder, go to line 85 () and change the code from
Code: Select all
$attachment->rawOut();
Code: Select all
$attachment->rawOut(true, 'inline');
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: attachment shown in browser
Hi,
It works. Thanks,
rioz
It works. Thanks,
rioz