• Resolved tilohirsch

    (@tilohirsch)


    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 */
            ...
    }
    • This topic was modified 7 years, 5 months ago by tilohirsch.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Jeff Starr

    (@specialk)

    Thanks tilohirsch, will investigate and get this fixed up in the next release.

    This happened to me also

    Plugin Author Jeff Starr

    (@specialk)

    Yes thank you moberdier, I have this on the list and will get it fixed up in the next version. Thank you for the feedback.

    Plugin Author Jeff Starr

    (@specialk)

    Just to follow up with this, the reported issue is resolved in the next version of the plugin. Should be available in the next week or so. Thanks for helping to improve User Submitted Posts.

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.