Uploading large files

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • RT

    Uploading large files

    Hi

    I have an application in which the client is allowed to upload files, some
    of these files can be as large as 20 megs in size. I have increased the
    php.ini max file size to 50meg and we have increased the apache timeout out
    to 10 minutes yet I can¹t even get a 12 meg file to upload.


    Does any one know the limitation on file uploads for php or is there another
    setting I need to change in the php.ini file.

    Thanks

  • Justin Koivisto

    #2
    Re: Uploading large files

    RT wrote:
    [color=blue]
    > Hi
    >
    > I have an application in which the client is allowed to upload files,
    > some of these files can be as large as 20 megs in size. I have increased
    > the php.ini max file size to 50meg and we have increased the apache
    > timeout out to 10 minutes yet I can’t even get a 12 meg file to upload.
    >
    >
    > Does any one know the limitation on file uploads for php or is there
    > another setting I need to change in the php.ini file.
    >
    > Thanks[/color]

    Here's what I have set for mine:

    post_max_size = 200M
    upload_max_file size = 200M
    session.gc_maxl ifetime = 18000

    I just saw a 164M file come in yesterday. I didn't make any changes to
    apache itself, just the php.ini file.

    --
    Justin Koivisto - justin@koivi.co m

    Comment

    • webhigh

      #3
      Re: Uploading large files

      What you need to do is include the following in your php.ini (which needs to
      be in the same level as the php form you¹re using) :

      upload_max_file size = 100M
      post_max_size = 100M

      The post_max_size = xxxM allows the form to process the files to the limits
      set.

      Web High


      On 6/15/05 6:27 AM, in article BED57ABC.27C08% robertth@comcas t.net, "RT"
      <robertth@comca st.net> wrote:
      [color=blue]
      > Hi
      >
      > I have an application in which the client is allowed to upload files, some of
      > these files can be as large as 20 megs in size. I have increased the php.ini
      > max file size to 50meg and we have increased the apache timeout out to 10
      > minutes yet I can¹t even get a 12 meg file to upload.
      >
      >
      > Does any one know the limitation on file uploads for php or is there another
      > setting I need to change in the php.ini file.
      >
      > Thanks[/color]



      Comment

      • Justin Koivisto

        #4
        Re: Uploading large files

        Please set your Mac Entourage program to post to news groups in plain
        text only.

        --
        Justin Koivisto - justin@koivi.co m

        Comment

        • Peter Fox

          #5
          Re: Uploading large files

          Following on from RT's message. . .[color=blue]
          > Hi
          >
          > I have an application in which the client is allowed to upload files,
          > some of these files can be as large as 20 megs in size. I have
          > increased the php.ini max file size to 50meg and we have increased
          > the apache timeout out to 10 minutes yet I can?t even get a 12 meg
          > file to upload.
          >
          >
          > Does any one know the limitation on file uploads for php or is there
          > another setting I need to change in the php.ini file.[/color]

          Probably not the answer you wanted, but I would have thought that FTP
          rather than HTTP would be better because it is possible to get progress
          feedback which is not available using web pages. Since these files are
          large you're not talking casual users here so making them 'invest' in
          the proper tool for the job or making the effort to provide it doesn't
          seem unreasonable.

          [color=blue]
          >
          > Thanks[/color]

          --
          PETER FOX Not the same since the porcelain business went down the pan
          peterfox@eminen t.demon.co.uk.n ot.this.bit.no. html
          2 Tees Close, Witham, Essex.
          Gravity beer in Essex <http://www.eminent.dem on.co.uk>

          Comment

          • juglesh

            #6
            Re: Uploading large files



            Justin Koivisto wrote:[color=blue]
            > Here's what I have set for mine:
            >
            > post_max_size = 200M
            > upload_max_file size = 200M
            > session.gc_maxl ifetime = 18000[/color]

            I tried those and others:
            max_execution_t ime = 666600
            max_input_time = 666600
            memory_limit = 666M
            post_max_size = 666M
            upload_max_file size = 666M
            session.gc_maxl ifetime = 22333

            I never get a php error, but eventually, i get a 500 internal server
            error. Last couple trys, the files (pictures, as many as 10, .7-2 megs
            each) were actually uploaded, but not all of them were resized (they
            hit a resize function after they are upped.) So, that was wierd.

            anyway, the 500 error means what to me? some max execution setting in
            apache? hopefully one that can be overridden with .htaccess.

            --
            insight appreciated, thanks.
            juglesh

            Comment

            Working...