View Full Version : Download not working, just turns into XML.
05-23-2008, 12:40 PM
Hey! This issue is relevant to IE and Safari. When the first download is clicked here: http://wifee.missingstudios.com/downloads/housing.php, it turns into XML.
Any idea how to overcome this?
In IE, it comes up with an XML Error.
05-23-2008, 03:03 PM
It doesn't turn into xml - it already is XML, it appears. Check out the source of the error page in IE. It's XML but it has the sims packager junk at the beginning.
You might ought to use a separate download script. Here's an example that I use for PDFs.
header('Content-Disposition: attachment; '
That's the whole file. If it's named download-app.php, then my download link would be <a href="download-app.php">download</a>.
Doing it this way, you have more control over the disposition of the content. By just providing the link, you're allowing the browser to handle it as it sees fit. IE is "helping" you by trying to handle the sims pack XML as a regular XML file.
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.