Feng Forum

Support => Older versions => : Curneth July 21, 2009, 05:50:24 AM

: Download of specific Doctypes in IE7 / IE8 doesn't work
: Curneth 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
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: alvarotm01 July 21, 2009, 04:56:46 PM
Hi,

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

greetings
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: Curneth 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
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: Thomas 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

: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: ignacio 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 */.
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: Thomas 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 ...
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: interjinn 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.
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: interjinn 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.
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: Henry 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
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: interjinn 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
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: Kudos! February 08, 2010, 02:23:14 PM
Now it works!
Thanks very much for the fix.
: Re: Download of specific Doctypes in IE7 / IE8 doesn't work
: ignacio February 15, 2010, 11:56:16 AM
Thanks interjinn! Good work!