Hi, analyzing the code I found it on line 374 of file upload.php to need to put the separator.
current line:
$attach_id = wp_insert_attachment( $attachment, $target_path . $name, $parent_id);
updated line:
$attach_id = wp_insert_attachment( $attachment, $target_path . DIRECTORY_SEPARATOR . $name, $parent_id);