Menu

filesize limit

jisland
2006-01-13
2013-04-25
  • jisland

    jisland - 2006-01-13

    There seems to be a filesize limit on uploading documents... i cannot upload large documents (13MB) - is there a way to change this? I cannot find it...

     
    • Devin

      Devin - 2006-01-13

      its a php setting called post_max_size. there are a few ways to set it to something higher.

      1) go into your php.ini file on your web server and edit post_max_size, upload_max_filesize, and max_execution_time to whatever you want.

      2) edit your .htaccess file so it looks something like this:
      php_value upload_max_filesize 70M
      php_value post_max_size 80M
      php_value max_execution_time 500

      3) in the php file doing the posting and recieving add something like this:
      ini_set('upload_max_filesize', '70M');
      ini_set('post_max_size', '80M');
      ini_set('max_execution_time', '500');

      also if you are realy using this as a production pice of software contact me so i can get you a more stable one. libra prety much got dumped as people never give me credit for it, and for free software, theres realy nothing else i care about.

       
    • jisland

      jisland - 2006-01-13

      Wow! what a quick response! greatly appreciated, I didn't have to edit my php.ini, i guess it is already set up, I don't have access to it anyway.

      I simply created a .htaccess file and pasted the following into it:
      php_value upload_max_filesize 70M
      php_value post_max_size 80M
      php_value max_execution_time 500

      This solved my problem. Thanks!
      of course, i always give credit to those who have worked to develop free software, this is for my own site and i am just learning php for now.

       
      • Devin

        Devin - 2006-01-13

        this was actulay the first php script i ever wrote...and it is NOT updated. its prety old and ghetto but easy to learn from because its from a beginners perspective. keep in mind there are security problem i found way later, so you can have fun learing how to fix them :p

         

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.