Page 1 of 1

PHP Error 1

Posted: 12 Apr 2011, 08:20
by DarkRanger
Hi,

I receive an Error code 1 when I try upload a file. Now I know, from php.net/manual/, that this error is thrown when the file size of the uploaded file exceeds the upload_max_filesize directive specified in php.ini. I went over to Webmin -> Others -> PHP Configuration and specified the max upload size to be 10MB (upload_max_filesize = 10M) and changed, for good measure the post_max_size to 10MB as well.

Restarted the server and retried uploading a 2.5MB file, and it still throws an error 1.

Am I missing something?

Re: PHP Error 1

Posted: 05 Jul 2011, 13:33
by azizarnold
Hi,

Remember that memory_limit also affects the size of the file that can be uploaded.

Look at the following link for more information: http://php.net/manual/en/ini.core.php

Hope this helps