I'm trying to upload files greater than 8M using uploadify module. Using latest stable version of silverstripe 2.4.xx
I've tried adding custom php.ini under the sapphire folder:
upload_max_filesize = 20M
post_max_size = 20M
max_input_time = 120
max_execution_time = 120
Also tried adding in .htaccess file.
I'm running MAMP and php version 5.2.17. Looking at the php.ini, upload limit is set at 32M.
Turning on uploadify debugging, shows a file size limit of 8000000 bytes.
Interesting to note, when echo this line to the screen: ini_get('upload_max_filesize'), it comes back with 256M
Any help here would be much appreciated.
You can can set file size like this:
$UserPhoto->setVar('sizeLimit', '5242880'); (doesn't work)
Otherwise it gets the file size from the php setting for max file upload size. Setting the above and the php variable made no difference. It was always 8mb. Default on the server was 32mb.
if (settings.sizeLimit) data.sizeLimit = 20971520;
I haven't had a chance to work through, but at some point the variable is not getting set or passed through. I needed a quick solution.
Changing the php.ini and placing in root or sapphire folder had no effect at all.