Re: Totally weird behavior trying to download a Mac DMG file

From: Date: Wed, 17 Jun 2009 17:52:33 +0000
Subject: Re: Totally weird behavior trying to download a Mac DMG file
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-294169@lists.php.net to get a copy of this message
On 6/16/09 1:40 PM, "Brian Dunning" <brian@briandunning.com> wrote: > However, when I complete a test purchase and download using the above > code, the DMG file downloads, but then it mounts; the contents are > copied into the Downloads folder; the image unmounts; and then > deletes. All the contents are delivered, but not in a desirable way. what headers are sent by the server when you don't use your php script? try sending those headers instead. perhaps try application/force-download as the content type instead. for several user agents this seems to prevent then from doing something useful with the file and just save it instead.

« previous php.general (#294169) next »