• Resolved nsackman

    (@nsackman)


    The following function in the code uploads the files with a double extension. For example, filename.jpg.jpg. The variable $name already contains the extension so adding on $ext is unnecessary.

    function ssa_change_filename($dir, $name, $ext){
    $filename = $name.$ext;
    $filename = apply_filters(‘ssa_override_filename’,$filename);
    return $filename;
    }

    A suggestion would be to remove the call to this function in the $upload_overrides. Here is a workaround that helped me until that is done:

    function remove_extra_ext( $filename ) {
    return pathinfo( $filename, PATHINFO_FILENAME );
    }
    add_filter( ‘ssa_override_filename’, ‘remove_extra_ext’ );

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error in ssa_change_filename’ is closed to new replies.