00283: Move "$UploadMaxSize" to local/config.php
$UploadMaxSize
" to local/config.phpDescription:
When the $UploadMaxSize
is set in ../local/config.php instead of ../scripts/upload.php it will not get overridden doing an upgrade.
I just made the upload functionality active in 2.0beta16 and when uploading a file it was complaining about the size which was more then 50000. So I set it to 50000000 and the upload went OK.
Then I saw there was a new 2.0beta17. Downloaded and then copied it over the old installation and the $UploadMaxSize
was again set to 50000 as the upload.php was overridden by the one in the installation.
Greetings, Jeroen Roeterd
Ummm, I'm not sure I understand this post -- PmWiki already works in the manner requested. I.e., setting
$UploadMaxSize
= 5000000;
in local/config.php will override the setting in scripts/upload.php (and will survive an upgrade).
In general, admins should never have to modify the files in the scripts/ directory, but can simply override them in local/config.php.
--Pm
My mistake, PmWiki is new for me. I didn't know that $UploadMaxSize
= 5000000; could also be set in the /local/config.php. In the UploadsAdmin an example is given to set the $UploadMaxSize
to a 100K and there the upload.php is named as the place to do it.
Thanks for your answer. I changed the Status to closed.
Greetings, Jeroen Roeterd
I went ahead and updated the UploadsAdmin documentation to be a bit clearer. --Pm