Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Easypopulate problem w/IE


Recommended Posts

I've been asked to support a new OSCommerce site. We're having a problem with Easypopulate as follows:

 

In Easypopulate (using IE6), I choose download complete tab-delimited file

 

After it runs a bit, it gives me the option of opening or saving the file - but the file name appears to have the complete URL, including the query string. Note that the way IE displays the filename, I can't see it all (too long), but what I do see is "...p?download=stream&dltype=full from ..."

 

If I run the same query using Firefox or Mozilla, I see the correct filename in the download and it runs correctly. ...and no, I can't get away with telling my client not to use Internet Explorer.

 

While pointing me at a fix would be great, even pointing me at the place in Easypopulate where it's building the file name for download would speed me up.

 

thanks in advance

---Michael

Link to comment
Share on other sites

 

OK, in my version of easypopulate the relevant code seems to be:

 

	if ($download == 'stream'){
	//*******************************
	// STREAM FILE
	//*******************************
	header("Content-type: application/vnd.ms-excel");
//		header("Content-disposition: attachment; filename=$EXPORT_TIME.txt");
	header("Content-disposition: attachment");
	header("Pragma: no-cache");
	header("Expires: 0");
	echo $filestring;
	die();
}

 

For whatever reason, the "Content-disposition" line is being processed correctly in Firefox, et al., but not being properly processed by Internet Explorer.

 

Help! Please!

---Michael

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...