Hi,
I have installed 5.x-2.2 in my company's intranet. Installation and uploading of files have worked fine. But the major problem I'm facing is opening .doc, .xls, .ppt and .pub files. When a user clicks on the link to the files, a browser opens and closes immediately. When the user right clicks and select "view file", the same thing happens. When the user selects "download as file", the information bar pops up and states "IE blocked this site from downloading files to your computer". And after clicking on the bar and selecting "download file", the whole page just reloads again and does not download the file.
I understand the information bar feature of IE cause this as a form of security feature. But attaching a file to a node does not cause this problem at all.
Is there a workaround solution for this. Please help.
Emmanuel
Comments
Comment #1
robmilne commentedI'm at 2.3 now and I haven't had any problem downloading with IE6(W2K) or IE7(XP). IE7 didn't allow my initial download of a file but after granting access via the bar the second attempt was successful. I've always advocated FF over IE. WebFM performance is better and has less problems in Firefox.
Comment #2
km0001 commentedGreetings,
I have a fresh install of 5.x-2.3 and have the same problem as Emmanuel. Tried FF works fine, but not with IE7 on Vista. Any suggestions? What info do you need to diagnose?
Thanks,
Keith
Comment #3
emmanuel37 commentedHi,
I would prob can be 2 fold. On one hand, I am able to open pdf files. It's only for microsoft documents that doesn't open. However I'm able to open microsoft attachments directly from the node. On other hand, IE6 wih XPsp2 has got this new feature called the info bar which prevents pop ups or downloads from untrusted sites (so to speak). But the funny thing is IE doesn't block the downloading attachments directly from the node.
There is a workaround solution to change the internet settings, but the Internet settings are profile dependant. I have way to many users here. Is there any other way?
Comment #4
robmilne commentedSorry but I don't have access to vista.
What have you got against the superior browser anyway? MS has had a decade to improve this shoddy product and the best that they could do was adding tabs? I'm not a knee-jerk MS hater (I support my family with .net programming) but IE is crap. There really is no excuse for using it other than laziness. I've already spent too many hours trying to get my module compatible with IE. If you can patch the code to get the behaviour you want I will gladly review and commit.
Comment #5
km0001 commentedEmmanuel,
You make reference to being able to resolve the issue with a change to the profile, would you be kind enough to share what settings you changed.
Thanks in advance,
Keith
Comment #6
emmanuel37 commentednot required
Comment #7
sean_sean commentedGuys,
Did anyone solve this?
I'm getting exact same problem in IE7 - Microsoft files will not open or download.
Works fine in FF but nearly all our users are using IE.
Cheers
Sean
Comment #8
tobiass commentedI have the same issue too. It works on Firefox and Opera but not with IE. I think a module should work with all browser types, because you can not dictate which browser a user has to use! And it is not only Vista but also XP
Because this is a very very urgent issue, I would like to reopen the issue and change the priority status and category (Sorry for that, but I think it is really essential)
Comment #9
andreavr commentedRefer:
http://drupal.org/node/244852
#13 comment allows a "fix" by essentially stopping popups. There are issues with IE6 and 7 with popups and security settings connected with the permissions to download a file.
Things I have learnt and done to make this work with IE over the last two months - NOTE: I am not a js programmer but am determined to get this working for now.
a. It helps if you can get your users to set your site as a trusted site within their browser to stop popups coming up every time they want to download, my client has ended up with a user help page:
Trouble Downloading Files?
If you are using Internet Explorer as your browser, you may be struggling with an information bar alert that appears when attempting to download files from this site. To avoid this alert, simply adjust your browser settings to add yoursite.com as a trusted site:
1. At the top of your browser window, click the 'Tools' menu, and select 'Internet Options'
2. Under the 'Security' tab, select 'Trusted Sites'
3. Click the 'Sites' button
4. In the "Add this Web site to the zone" box, type; http://www.yoursite.com
5. Click the 'Add' button
6. Make sure “Require server verification” is not ticked/checked
7. Click the 'OK' button twice
Not great as the user has to make the updates but that's IE for you.
b. IE has problems finding file refer especially for pdfs: refer http://drupal.org/node/5785
my fix:
webfm.module (around line 2389) :
// prompt for download file or view;
changed:
$header[] = 'Cache-Control: no-cache, must-revalidate'; to
$header[] = 'Cache-Control: max-age=1, must-revalidate';
c. IE doesn't remember file name when opened in browser - user ends up with 1.doc as the file name if they try to save it from within the browser.
// view file via browser (around line 2403)
I replaced the view via browser header info with the same as "prompt for download file or view;"
$header[] = 'Pragma: no-cache';
$header[] = 'Cache-Control: max-age=1, must-revalidate';
$header[] = 'Content-Disposition: attachment; filename="'.$name.'";' ;
This means all users now get the choice to view or download rather than automatically opening in their browser - more clicks but streamlines them all to doing similar processes.
Hope this helps
Andrea
Comment #10
nhck commentedThank you for working with this! If you think this should be different. Please reopen it with new details.
Thank you again :-)