Cannot upload files greater than 2049KB.

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
morrij
Posts: 2
Joined: Thu 11. Mar 2004, 17:22
Location: UK

Cannot upload files greater than 2049KB.

Post 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
bobd314
Posts: 44
Joined: Tue 24. Feb 2004, 04:19

Post 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.
morrij
Posts: 2
Joined: Thu 11. Mar 2004, 17:22
Location: UK

Post 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
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post by Jan212 »

perhaps you must also set up the max_execution_time to a higher level i think...
best regards
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
bobd314
Posts: 44
Joined: Tue 24. Feb 2004, 04:19

Post 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.
Post Reply