Add dropped file to a file input using jQuery
This is worked with me in google chrome , the problem now with other browsers
$("input[type='file']").prop("files", e.originalEvent.dataTransfer.files);
From @NassimPHP 's answer, this worked!
$("input[type='file']").prop("files", e.dataTransfer.files);