I want to HTML5 features to implement drag and drop file uploads.
This is what I have done so far:
<form id="form" runat="server" enctype="multipart/form-data">
<div id="danger">Drag and Drap</div>
</form>
JavaScript:
var xhr = XMLHttpRequest();
xhr.open("POST", "fileUpload.aspx");
xhr.send(data);
.Net:
public void fileUpload() {
for (int i = 0; i < Request.Files; i++)
{
}
}
I am not able to hit fileUpload method, fiddler gives no informations. Any ideas what I might be doing wrong?