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?
PHP Error 1
-
- Registered User
- Posts: 8346
- Joined: 10 May 2006, 02:00
- Processor: Intel i5-3750
- Motherboard: Gigabyte
- Graphics card: nVidia GTX 550Ti
- Memory: 8GB Jetram
- Contact:
-
- Registered User
- Posts: 2
- Joined: 05 Jul 2011, 13:20
- Location: Cape Town
- Contact:
Re: PHP Error 1
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
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