MyBB Community Forums

Full Version: Problem with attachment
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3
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";
}
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.
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
Anyone else can confirm this? I can provide a test account
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/vie...-solutions
https://addons.mozilla.org/en-US/firefox...sposition/
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
(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....
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
^ 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
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
Pages: 1 2 3