When I try to upload an image over about 4mb, then $_FILES['upload']['error'] returns 1 and the file wont upload. But in my php.ini I have upload_max_filesize set to 20mb....
Why am i getting an error?
Heres php code to check for error
if ($_FILES['upload']['error']) {
array_push($not_uploaded, $_FILES['upload']['name']);
if ($_FILES['upload']['error'] == 1) {
trigger_error('Iimage exceeded server php upload limit', E_USER_WARNING);
array_push($error_msgs, elgg_echo('services:image_mem'));
} else {
array_push($error_msgs, elgg_echo('services:unk_error'));
}
}