SSL, IE6 and Phoca Download 2.1.8

Phoca Download - download manager
jentekk
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Dec 2010, 03:56

SSL, IE6 and Phoca Download 2.1.8

Post by jentekk »

Hello,

I've just upgraded a client's SSL website to Joomla 2.5.9 and installed Phoca Download 2.1.8 - GREAT extension btw! :)

My client is experiencing the following challenge - they are using IE6 <sigh>

When they click on the Download link, they are only given one option... "SAVE". They'd like their browser to "OPEN" the file right away, rather than having to save it to their computer first in order to open it.

I understand the following code may have something to do with this --- taken from components/com_phocadownload/helpers/phocadownload.php

Code: Select all

			// test for protocol and set the appropriate headers
				    jimport( 'joomla.environment.uri' );
				    $_tmp_uri 		= &JURI::getInstance( JURI::current() );
				    $_tmp_protocol 	= $_tmp_uri->getScheme();
				    if ($_tmp_protocol == "https") {
				     // SSL Support
				           header('Cache-Control: private, max-age=0, must-revalidate, no-store');
				    } else {
			                  header("Cache-Control: public, must-revalidate");
					  header('Cache-Control: pre-check=0, post-check=0, max-age=0');
				           header("Pragma: no-cache");
					  header("Expires: 0");   
					} /* end if protocol https */
					   header("Content-Description: File Transfer");
					   header("Expires: Sat, 30 Dec 1990 07:07:07 GMT");
					   header("Accept-Ranges: bytes");
Which header variables should I be commenting out so that my client's browser will permit them to either "Open" or "Save" the document?

Thanks so much for your help!

Jen
jentekk
Phoca Newbie
Phoca Newbie
Posts: 4
Joined: 04 Dec 2010, 03:56

Re: SSL, IE6 and Phoca Download 2.1.8

Post by jentekk »

Okay so I figured out what I needed to do! :oops:

Removed: "no-store" from the following code:

Code: Select all

header('Cache-Control: private, max-age=0, must-revalidate, no-store');
I also commented out all the other headers. Not sure if I needed to do this, but now it's working great.
Post Reply