Safari download problems
| From: | Brian Dunning | Date: | Sat, 13 Mar 2004 21:57:47 +0000 |
| Subject: | Safari download problems | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-180360@lists.php.net to get a copy of this message | ||
Hi all,
I have a script for downloading a file once it's been purchased. Works fine with any browser except Safari, which only downloads the first tiny portion of the file and then, of course, the user can't uncompress the incomplete archive. Here is my code:
header('Content-type: '.$file_row['content_type']);
header('Content-Disposition: attachment; filename="'.$file_row["filename"].'"');
readfile('../../store/files/'.$file_row['filename']);
Assume that filename = 'myarchive.hqx' and content_type is 'application/hqx'
Can anyone suggest a way to make this work for Safari users too?
Thanks,
-Brian