use jquery form plugin for the upload functionality (http://www.malsup.com/jquery/form/)
use ( http://www.fyneworks.com/jquery/multiple-file-upload/) for the ability to specify multiple files to upload
this is how it works, the form plugin lets you post data to a page without refreshing, the multi file plugin lets you specify multiple files by browsing for them.
<form id="uploadForm" enctype="multipart/form-data" method="post" action="FileHandler.ashx">
<input type="hidden" value="100000" name="MAX_FILE_SIZE"/>
File:
<input type="file" name="file"/>
<input type="submit" value="Submit"/>
</form>
so basically the above little html submits to FileHandler.ashx, whatever's in the input box (hopefully), add an HTTP handler in ur asp project, little code below
<%@ WebHandler Language="C#" Class="FileHandler" %>
using System;
using System.Web;
using System.IO;
public class FileHandler : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
string strFileName = Path.GetFileName(context.Request.Files[0].FileName);
string strExtension = Path.GetExtension(context.Request.Files[0].FileName).ToLower();
string strSaveLocation = context.Server.MapPath("Upload") + "" + strFileName;
context.Request.Files[0].SaveAs(strSaveLocation);
context.Response.ContentType = "text/plain";
context.Response.Write("success");
}
public bool IsReusable
{
get
{
return false;
}
}
}
all thats missing from here is including the js scripts on ur aspx page, i think :) good luck