|
Posted by wakun on 10/08/97 11:36
wakun@wakun.com wrote:
> Hi there,
> I am using a POST method to upload a big file (20M), I have already
> set the max-upload-file = 30M in php.ini and have the hidden
> MAX_FILE_SIZE=30M in multipart form. However, it still refuse to upload
> such file. For some reason, I am not going to use ftp instead. Any
> idea?
>
> Thanks in advance.
Now, I figure out the problem by setting the post_max_size=40M in
php.ini but I get another problem about offering a big file to
download. I have the download script as follow
$len = filesize($absfile);
$fd = fopen($absfile, "rb");
$contents = fread($fd, $len);
fclose($fd);
$t = "application/pdf";
header("Content-Type: $t");
header("Content-Length: $len");
header("Content-Disposition: inline; filename=$filename");
header("Pragma: private"); // fix for IE
echo $contents;
I found it takes almost one minute to download the file bigger than
20M?
Navigation:
[Reply to this message]
|