Widget plugin and input file

add_action('post_edit_form_tag', 'post_edit_form_tag');
function post_edit_form_tag() {
    echo ' enctype="multipart/form-data"';
}

Add the above code in your active theme’s functions.php file.

Then print_r($_file) will display the file array.