MyBB Community Forums
[Rejected] Problem with attachment - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Development (https://community.mybb.com/forum-161.html)
+--- Forum: MyBB 1.8 Development (https://community.mybb.com/forum-165.html)
+---- Forum: 1.8 Bugs and Issues (https://community.mybb.com/forum-157.html)
+----- Forum: Rejected (https://community.mybb.com/forum-184.html)
+----- Thread: [Rejected] Problem with attachment (/thread-162983.html)

Pages: 1 2 3


Problem with attachment - Eldenroot - 2014-11-18

1) Google Chrome

Open a new thread, add attachment (in my case I added .pdf file), write some text and post it. 
Try to download the .pdf file from this thread -> it opens in a new window and you can see it without downloading in your browser -> close it

2) Firefox

Open a new thread, add SAME attachment, write some text and post it.
Try to download the .pdf file from this thread -> it forces you to download this file before opening, you cannot open it in a new window.


Everytime when you wanna download a file which was uploaded from Firefox - you cannot open it in browser, it forces you to download it first into PC.
When you uploaded this file by Google Chrome - you can open it in browser (tested in Firefox and Chrome), it doesnt force you to download this file first.


So tell me, how to change this? I prefer the first case. It depends on the browser where the file was uploaded.


EDIT:
we can force users to download the file instead of open it in browser by this:

{
global $attachment;
$attachment['filetype'] = "none";
}


RE: Problem with attachment - .m. - 2014-11-18

opening a pdf file in browser or downloading it should be based on the browser settings.
browser type used while uploading the file should have no effect on viewing / downloading the file.


RE: Problem with attachment - Eldenroot - 2014-11-18

Yes, I agree and thats why I posted this into bug report. Because it depends only on browser which was used while uploading the file


RE: Problem with attachment - Eldenroot - 2014-11-19

Anyone else can confirm this? I can provide a test account


RE: Problem with attachment - mmadhankumar - 2014-11-19

i tried but couldnt reproduce this.... are you sure this is a mybb bug and not just a browser behaviour....

https://support.mozilla.org/en-US/kb/view-pdf-files-firefox-without-downloading-them#w_if-pdf-files-are-downloaded-instead-of-displayed-try-these-solutions
https://addons.mozilla.org/en-US/firefox/addon/inlinedisposition/


RE: Problem with attachment - Eldenroot - 2014-11-19

OK, I will provide you a link to my test forum... I will use same .pdf file (one uploaded in firefox, the second in chrome).

EDIT: I will post you username + pw in PM and link for testing (webhosting is now down for maintance Sad )

Here is the link with more info:
http://testingpage.4fan.cz/showthread.php?tid=2

I edited permissions - now you can test it without account. I am sorry


RE: Problem with attachment - mmadhankumar - 2014-11-20

(2014-11-19, 02:17 PM)Eldenroot Wrote: Here is the link with more info:
http://testingpage.4fan.cz/showthread.php?tid=2

strange enough... yes it happens... but check this test page: http://mytestboard.tk/mybb/showthread.php?tid=5

i can view all files without downloading....


RE: Problem with attachment - Eldenroot - 2014-11-20

Yeah, it works fine in your test forum.

Is there anybody who can tell me what is wrong? And how to fix it? It is pretty annoying... tested with others users with firefox browser - all files uploaded by them must be downloaded first

EDIT:
I test it here... uploaded in chrome and firefox

Check my attachment - same bug here in mybb forum! Sad


RE: Problem with attachment - .m. - 2014-11-20

^ my main browser (firefox 33.1.1) is set to always ask whether to open or save the pdf files
and both attachments given above obliged the browser setting


RE: Problem with attachment - Eldenroot - 2014-11-20

try disable this... or use google chrome - it depends on a browser where the files were uploaded. Thats the problem... I can set same bahiour, but pdf should be opened in a new tab by default settng in mybb