Adjusting the http file upload limit to allow more kbs.
I think the default limit in PHP for http uploads is set 2M in the php.ini file. The default location of php.ini is a compile time option. In most Red Hat distros it is located at /etc/php.ini.
If uploads are not working at all make sure:
file_uploads = On
You can adjust the amount allowed by changing:
upload_max_filesize = 2M
Since most uploads are done as POSTS thru forms make sure post_max_size is equal to or larger then upload_max_filesize.
post_max_size = 8M
HINT:
When you're having troubles uploading files using Apache 2, try to use
upload_max_filesize = 6291456;
instead of
upload_max_filesize = 6M;
that should work!
|