File upload to client via Apache
| From: | ondi | Date: | Thu, 02 Sep 1999 11:04:02 +0000 |
| Subject: | File upload to client via Apache | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10438@lists.php.net to get a copy of this message | ||
Hello!
I need to upload files to clients in some special way!
As described here:
<?
$filename="/path/to/some/file/file_name";
$size=filesize($filename);
Header("Content-Type: application/octet-stream");
Header("Content-Length: $size");
Header("Content-Disposition: attachment; filename=file_name");
readfile($filename);
?>
How can I make sure that file was downloaded successfully
or aborted?