MSatterwhite Posted June 20, 2006 Share Posted June 20, 2006 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 Quote Link to comment Share on other sites More sharing options...
MSatterwhite Posted June 20, 2006 Author Share Posted June 20, 2006 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 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.