[asp.net]jquery ajax上傳檔案

NO IMAGE
<script type="text/javascript">
function get() {
var fileUpload = $("#fupload").get(0);
var files = fileUpload.files;
var data = new FormData();
for (var i = 0; i < files.length; i  ) {
data.append(files[i].name, files[i]);
}
$.ajax({
url: "../Ajax/FileUploadHandler.ashx",
type: "POST",
data: data,
contentType: false,
processData: false,
success: function (result) { alert(result); },
error: function (err) {
alert(err.statusText)
}
});
}
</script>
<a href="#" onclick="get()"><img src="../images/tj.png" border="0" ></a>
<asp:LinkButton ID="btnUploadww" runat="server" Width="69px" CausesValidation="False" ><img src="../images/tj.png" border="0" ></asp:LinkButton>
<input id="fupload" runat="server" name="imgfile" type="file" />
public partial class UploadFile : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
btnUploadww.Attributes.Add("onclick", "get()");
}
}
/// <summary>
/// FileUploadHandler 的摘要說明
/// </summary>
public class FileUploadHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
if (context.Request.Files.Count > 0)
{
HttpFileCollection files = context.Request.Files;
for (int i = 0; i < files.Count; i  )
{
HttpPostedFile file = files[i];
string fname = context.Server.MapPath("~/uploadfiles/"   file.FileName);
file.SaveAs(fname);
}
context.Response.ContentType = "text/plain";
context.Response.Write("File Uploaded Successfully!");
}  
}
public bool IsReusable
{
get
{
return false;
}
}
}