[Rejected] Problem with attachment
#1
Information 
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";
}
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#2
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.
Reply
#3
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
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#4
Anyone else can confirm this? I can provide a test account
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#5
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/
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#6
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
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#7
(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....
We can't help everyone, but everyone can help someone - Ronald Reagan
Did you know? Your question has already been answered. But you haven't searched it yet.
Don’t  Forget to “Mark as Solved” after the fix
Reply
#8
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


Attached Files
.pdf   chrome.pdf (Size: 309.71 KB / Downloads: 135)
.pdf   firefox.pdf (Size: 309.71 KB / Downloads: 118)
.pdf   opera.pdf (Size: 46.8 KB / Downloads: 133)
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply
#9
^ 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
Reply
#10
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
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)