I have a div with Drag and Drop functionality. I am able to get files in jquery using below code.
How can I access these files in the asp.cs file?
$("#dragDrop").on("click", function(event) {
$('#MyFileUpload')[0].click();
});
$('#MyFileUpload').change(function (e){
var files = e.target.files;
$('#MyFileUpload').prop("files", e.target.files);
});
<div class="customButton" id="dragDrop">
<input type="file" id="MyFileUpload" multiple style="display:none" />
<span style="font-size:larger;">Drag and Drop
</span>
</div>