is this possible? i searched online but didn't seem to get a conclusive answer. ppl have hooks to get it to work. want to know what's the correct way to do this.
i have something like this in my implementation.
html file:
-----------
<form id="upload_submit" method="post" action="#" enctype="multipart/form-data">
<input name="uploadfile" id="uploadfile" type="file" />
<button id="Send" type="submit" >Send File</button>
Javascript:
------------
$("#Send").live('click', function (e) {
e.preventDefault();
var formData = new FormData($('upload_submit')[0]);
$.ajax({
async: true,
type: 'POST',
contentType: XMLDocument,
url: url,
data: formData,
dataType: 'json',
cache: false,
processData: false,
...
Go to the complete details ...