Attachment view instead of download?
Moderator: Thorsten
Attachment view instead of download?
Is there a way to have attachments open in the browser instead of download? For instance a pdf attachment. I've tested this functionality on other support sites such as the one HERE
Re: Attachment view instead of download?
Hi,
change this line
https://github.com/thorsten/phpMyFAQ/bl ... nt.php#L69
to
bye
Thorsten
change this line
https://github.com/thorsten/phpMyFAQ/bl ... nt.php#L69
to
Code: Select all
$attachment->rawOut('inline');Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Attachment view instead of download?
Didn't seem to make any difference, I tried deleting the attachment and uploading a different one (still a .pdf) and when clicked it downloads instead of open in browser window.
PHP version is 5.4.26 on IIS 7
PHP version is 5.4.26 on IIS 7
Re: Attachment view instead of download?
Hi,
which browser do you use? Firefox or Chrome always open PDFs inline with their builtin viewer...
bye
Thorsten
which browser do you use? Firefox or Chrome always open PDFs inline with their builtin viewer...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Attachment view instead of download?
ChromeThorsten wrote:Hi,
which browser do you use? Firefox or Chrome always open PDFs inline with their builtin viewer...
bye
Thorsten
Re: Attachment view instead of download?
I tested it out on the live demo which produced the same results here.
Re: Attachment view instead of download?
Any other ideas?
Re: Attachment view instead of download?
Same thing for image attachments, they download instead of open in the browser.
Re: Attachment view instead of download?
Hi,
do you use any special addons?
bye
Thorsten
do you use any special addons?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Attachment view instead of download?
I do not, everything is strait out of the box.
Re: Attachment view instead of download?
Unfortunately this is the only thing standing in the way of me using phpMyFAQ. 
Re: Attachment view instead of download?
Hi,
did you changed the code as I mentioned in my first reply?
bye
Thorsten
did you changed the code as I mentioned in my first reply?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Attachment view instead of download?
Hey Thorsten, thanks for sticking with me.
Yeah I attempted the change you suggested but it didn't seem to work.
Yeah I attempted the change you suggested but it didn't seem to work.
Re: Attachment view instead of download?
Hi,
can I check it in your FAQ?
bye
Thorsten
can I check it in your FAQ?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Attachment view instead of download?
No I'm afraid it is setup behind a company firewall.