images dropped without error when image size larger than upload_max_filesize
-
When the image size of uploaded images is larger than php’s upload_max_filesize the image is dropped without warning. The problem is in function usp_check_images. A quick fix that worked for me:
function usp_check_images($files, $newPost) { global $usp_options; $temp = false; $errr = false; $error = array(); if (isset($files['tmp_name'])) $temp = array_filter($files['tmp_name']); if (isset($files['error'])) $errr = array_filter($files['error']); $file_count = 0; /* added */ if (!empty($errr)) { foreach ($errr as $key => $value){ if ($value == 1){ $error[] = 'file-error'; } } } /* end added */ ... }
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘images dropped without error when image size larger than upload_max_filesize’ is closed to new replies.