Hi guys, i can't upload anything above 2Mb's, wich is the preset in php.ini.
However i need to upload a 20Mb file.
So i put this in my code

  ini_set('upload_max_filesize', '50M');
  ini_set('post_max_size', '50M');
  ini_set('memory_limit', '50M');

But it still doesnt upload anything above 2Mb, so i am guessing i missed something.......
I appriciate any help.
~Gabor

    upload_max_filesize and post_max_size cannot be set via ini_set() unless you're using a PHP version <= 4.2.3. You'll need to set them via a .htaccess file or in php.ini.

    (See http://www.php.net/manual/en/ini.php#ini.list including Table G-2 at the bottom for an explanation of the 3rd column in the main table.)

      Write a Reply...