Menu

Large file uploads fail

Help
2005-10-12
2012-10-11
  • Harold Hallikainen

    I'm running phpwiki-1.3.11p1. For small files, upload seems to work fine. For larger files (like a 16M file that just failed), the system appears to be uploading for about 20 minutes, but then quits. This is on a 128kbps IDSL line, so 16M should take maybe 17 minutes (plus overhead). Looking in the upload directory, I find no evidence of the file. I've set the max upload file size in the phpwiki config to 50M. phpinfo() says the max file upload size is 50M and the max execution time is 1800 seconds (30 minutes). What am I missing?

    THANKS!

    Harold

     
    • Joel Uckelman

      Joel Uckelman - 2005-10-12

      Is it possible that you're hitting a memory limit?

       
      • Harold Hallikainen

        OK, We're on to something here. This is in the httpd error_log:

        PHP Warning: POST Content-Length of 16532065 bytes exceeds the limit of 8388608 bytes in Unknown on l
        ine 0, referer: .../UploadPages

        Now, the question is, where is that low limit coming from? phpinfo() says: "upload_max_filesize 50M 50M"

        Viewing the source from the upload page, I find "<input type="hidden" name="MAX_FILE_SIZE" value="50000000" /><input name="userfile" type="file" size="50" /> <input value="Upload" type="submit" />"

        So, where is the limit of 8388608 coming from?

        THANKS!

        Harold

         
        • stefan

          stefan - 2005-10-12

          there is a post_max_size and upload_max_filesize in the php.ini of your server. you need root permissions or good contacts to your serveradmin ...

           
          • Harold Hallikainen

            EXCELLENT! I missed post_max_size. All works now!

            THANKS!

            Harold

             
    • Harold Hallikainen

      That doesn't seem to be it. Just increased from 80M to 200M and it still seems to give up after 20 minutes. More ideas?

      Harold

       
      • Joel Uckelman

        Joel Uckelman - 2005-10-12

        Are there any errors in the web server logs around the time when the transfer fails?

         
      • stefan

        stefan - 2005-10-12

        the max. upload size is not only limited by the value you have set it to within your phpwiki. it's also limited by max the server: upload_max_filesize (at least in php 4.3.9, but i think this has existed for longer ...). you can check that with this little piece of code:

        <?php
        phpinfo();
        ?>

        copy (just these lines) into a new document, call it anyname.php, save it to your webspace, open the url in a webbrowser.

        stefan

         
    • Harold Hallikainen

      Also just increased max_execution_time to 3600 (and it's properly reported by phpinfo(). The upload still quits in 20 minutes...

      Harold

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.