Author Topic: Download of specific Doctypes in IE7 / IE8 doesn't work  (Read 5530 times)

Curneth

  • Newbie
  • *
  • Posts: 2
    • View Profile
Download of specific Doctypes in IE7 / IE8 doesn't work
« on: July 21, 2009, 05:50:24 am »
Hi,

I hope somebody can give me hints to track this issue down. I have shortly worked with opengoo 1.4.2 and then upgraded to 1.5-beta3 but the behaviour didn't change:

> I have tested downloading of Documents with FF and everything works as expected.

> With IE7 or IE8 downloading of .html-Files works as expected.
   When I try to download other File-types / Extensions like .pdf / .zip etc. there is a popup saying "Download not possible, Internetpage could not be opened because it is not available or could not be found. Try again later"....
--------------

I' running Opengoo on a virtual server with https-connection.

I have already tried to change Apache settings for MIME-Types but nothing changed.

Any ideas what to do ? I don't want to use IE but some colleagues in our team have to stick to IE... and without the possibility to download docs, the whole installation is nearly worthless....


Thanks for your ideas / hints / suggestions....

Stephan

alvarotm01

  • Administrator
  • Sr. Member
  • *****
  • Posts: 335
    • View Profile
    • Email
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #1 on: July 21, 2009, 04:56:46 pm »
Hi,

This issue will be fixed in next v1.5 release.

greetings

Curneth

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #2 on: August 03, 2009, 09:12:38 am »
No,

the issue isn't fixed. I upgraded to the 1.5 release, Downloads with IE 7/8 (and https-Connection) are still not possible !

Regards

Thomas

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #3 on: December 14, 2009, 06:59:31 pm »
I also have people having issues with downloading files in IE, and we're running v1.6 final release. The machine configurations are locked down, so there is no Firefox and no IE changes (financial institution).

Anyone have any advice or workarounds?

Thanks,
Thomas

Similar to an issue I posted about here:
http://forums.opengoo.org/index.php?topic=1845.0

« Last Edit: December 14, 2009, 07:01:02 pm by Thomas »

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #4 on: December 15, 2009, 01:18:00 pm »
Hi Thomas,

Following the advice in that post that you linked to, we made some changes to the what headers are sent to the browser in 1.6. If you want you can try rolling back that changes and see if it works. To do this delete lines 341, 349, 377 and 385 of file 'environment/functions/files.php'. Just search for 'function download_file' and 'function download_contents' and delete the lines that contain only /* or */.

Thomas

  • Newbie
  • *
  • Posts: 24
    • View Profile
    • Email
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #5 on: December 15, 2009, 06:52:22 pm »
I have made the appropriate changes in the files.php file, but we are still getting the same errors. Please see the screen shot which demonstrates the error in IE6 for a PDF file ...

interjinn

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #6 on: February 07, 2010, 05:51:47 am »
As always IE sails its own course... to fix the problem you need a couple of extra headers:

In the same file: environment/functions/files.php

Search for: header("Content-Transfer-Encoding: binary"); (there should be two occurrences)

After this line add the following two lines:

   header("Cache-Control: maxage=1"); // Age is in seconds.
   header("Pragma: public");

Voila, IE will download in HTTPS again.

Ignacio, if you could add these changes to the source code it would be extremely helpful for future releases. Currently downloads are borked in all patched versions of IE6, IE7, IE8 when accessed via HTTPS.

Thanks,
Rob.
« Last Edit: February 08, 2010, 12:48:26 pm by interjinn »

interjinn

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #7 on: February 07, 2010, 06:07:41 am »
Ignacio,

You might also want to do something like th following in the same functions as the above patch:

       if( isset( $_SERVER['HTTP_USER_AGENT'] )
            &&
            strpos( $_SERVER['HTTP_USER_AGENT'], 'MSIE' ) !== false )
        {
            $name = rawurlencode( $name );
        }

This will prevent some UTF-8 characters from being mangled by IE's assumption that the filename must be latin1.

Cheers,
Rob.
« Last Edit: February 07, 2010, 06:25:36 am by interjinn »

Henry

  • Full Member
  • ***
  • Posts: 159
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #8 on: February 08, 2010, 03:54:00 am »
Thx for the patch.
Now my user can work with the IE, if they want to do it.  :D :D :D :D :D

interjinn

  • Newbie
  • *
  • Posts: 31
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #9 on: February 08, 2010, 12:49:00 pm »
In case it wasn't obvious in my patch details... there are two occurrences of the search criteria and both require the patch  ;D

Kudos!

  • Newbie
  • *
  • Posts: 2
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #10 on: February 08, 2010, 02:23:14 pm »
Now it works!
Thanks very much for the fix.

ignacio

  • Hero Member
  • *****
  • Posts: 1703
    • View Profile
Re: Download of specific Doctypes in IE7 / IE8 doesn't work
« Reply #11 on: February 15, 2010, 11:56:16 am »
Thanks interjinn! Good work!