PHP Download Limitation 2MB

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
I have uploaded a file that is over 8MB and that is successful and I
have verified that it is a successful upload.

However, that same file seems to have a download limitation of 2MB
which I thought only applied to uploads.  When downloading via IE, it
shows the actual file size of 8+MB but then stops quarter of the way at

Is this a simple configuration fix that I am missing?

Thanks in advance!

Re: PHP Download Limitation 2MB wrote:
Quoted text here. Click to load it

   php.ini -->
; Maximum allowed size for uploaded files.
upload_max_filesize = 2M


Re: PHP Download Limitation 2MB

On Wed, 29 Jun 2005 15:45:05 -0700, singh_chintu wrote:
Quoted text here. Click to load it

If you're using PHP 5.0.4, you've probably been bitten by a readfile() bug
that caused files over 2 MB to be truncated. It has been fixed in CVS, but
of course, there hasn't been a 5.0 release since then.


Adam Harvey
Optimiser Pty Ltd

To e-mail: don't make an example out of me!

Re: PHP Download Limitation 2MB

It seems as though it must be because of the readfile() bug for a
couple reasons.  I am already uploading files greater than 2MB and my
php.ini file states: upload_max_filesize = 200M.

I am using IIS, not apache and I do not think that IIS has any sort of
file limitation setting by default.  I will be waiting for the new
release of PHP which I hope will be soon :)


Re: PHP Download Limitation 2MB

*** Marcin Dobrucki wrote/escribió (Fri, 01 Jul 2005 07:17:24 GMT):
Quoted text here. Click to load it

Also, you need that the web server accepts uploads larger than 2MB. In
Apache that's controlled by the following directive:

<Files *.php>
        LimitRequestBody 5242880

See for further info.

-- Álvaro G. Vicario - Burgos, Spain
-- - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group

Site Timeline