PHP Download Limitation 2MB

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • singh_chintu@bah.com

    PHP Download Limitation 2MB

    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
    2MB.

    Is this a simple configuration fix that I am missing?

    Thanks in advance!
    -c

  • Marcin Dobrucki

    #2
    Re: PHP Download Limitation 2MB

    singh_chintu@ba h.com wrote:[color=blue]
    > 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
    > 2MB.
    >
    > Is this a simple configuration fix that I am missing?[/color]

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

    /Marcin

    Comment

    • Adam Harvey

      #3
      Re: PHP Download Limitation 2MB

      On Wed, 29 Jun 2005 15:45:05 -0700, singh_chintu wrote:[color=blue]
      > 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
      > 2MB.
      >
      > Is this a simple configuration fix that I am missing?[/color]

      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

      --
      Adam Harvey
      Optimiser Pty Ltd

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

      Comment

      • Alvaro G Vicario

        #4
        Re: PHP Download Limitation 2MB

        *** Marcin Dobrucki wrote/escribió (Fri, 01 Jul 2005 07:17:24 GMT):[color=blue]
        > php.ini -->
        > ; Maximum allowed size for uploaded files.
        > upload_max_file size = 2M[/color]

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

        <Files *.php>
        LimitRequestBod y 5242880
        </Files>


        See http://www.php.net/features.file-upload for further info.

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

        Comment

        • singh_chintu@bah.com

          #5
          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_file size = 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 :)

          Chintu

          Comment

          Working...