Page 1 of 1

Cannot upload files greater than 2049KB.

Posted: Thu 11. Mar 2004, 18:55
by morrij
Hi all,

Can anyone help... I cannot upload files greater than 2049KB.

There is no error message, the page just returns with "Select a file you wish to upload".

I have tried increasing the 'file_maxsize' parameter in the conf.inc.php file, but to no avail. It looks like this defaults to 20MB anyway...
// content values
//$phpwcms["file_maxsize"] = 20971520; //Bytes (50 x 1024 x 1024)
$phpwcms["file_maxsize"] = 52428800; //Bytes (50 x 1024 x 1024)

My config: HP-UX 11i, Apache 2.0.4.8, PHP 4.3.4, MySQL 4.0.18

Apart from this problem, the installation and site creation has been very simple. An excellent product.

Thanks (in advance),

James

Posted: Thu 11. Mar 2004, 19:05
by bobd314
there is something in your php file (php.ini I think) and it limits you to how much you can upload via web browser, just use php take over and it should work fine.

Posted: Thu 11. Mar 2004, 19:26
by morrij
A very fast and accurate response. Thank you very much. :D

I didn't consider checking the PHP config.

I changed the following parameter in the php.ini file to 20M...

; Maximum allowed size for uploaded files.
upload_max_filesize = 20M

.. and restarted apache. I can now upload large files.

Thanks again,

James

Posted: Thu 11. Mar 2004, 22:02
by Jan212
perhaps you must also set up the max_execution_time to a higher level i think...
best regards

Posted: Fri 12. Mar 2004, 00:11
by bobd314
morrij wrote:A very fast and accurate response. Thank you very much. :D
Yea, I was in computer apps in school and was bored.