This topic is locked

Uploading Filesize

4/22/2008 7:53:30 AM
PHPRunner General questions
M
mmponline author

Is there a limit on filesizes to be uploaded. I'm struggling with a filesize of 8.7 Mb
If so:

What is the limit?

Is there a way/place to change this limit?
Wishlist:

It would be nice in a new update of PHPRunner to have a setting on Edit as.. file upload to be able to specify a limit.

J
Jane 4/22/2008

Stephan,
to change limit of uploaded file size edit your php.ini file:

; Maximum allowed size for uploaded files.

upload_max_filesize = 2M

post_max_size = 8M

S
steveh 4/22/2008

You could probably add code in the after logon event to set these (not sure whether they are dynamic), or worst case to error if they aren't set high enough?

M
mmponline author 4/22/2008

Any idea how to set this in an event. I'd prefer not to set this in php.ini, as it will then be true to whole site. I'd like tolimit it to a specific project or action. I'll do this on php.ini in the meantime.

S
steveh 4/22/2008

You'd use this function to set it:-
http://uk.php.net/manual/en/function.ini-set.php
And if you wanted to check before you did this (to generate an error or maybe to only increase if it was less) then you'd use this:-
http://uk.php.net/manual/en/function.ini-get.php