$("#<%=FileUpload1.ClientID%>").fileUpload({
'uploader': 'scripts/uploader.swf',
'cancelImg': 'images/cancel_upload.png',
'buttonText': 'Browse Files',
'script': 'Upload.ashx',
'folder': 'uploads',
'queueSizeLimit': '2',
'fileDesc': 'Image Files',
'fileExt': '*.jpg;*.jpeg;*.gif;*.png;*.doc;*.docx;*.pdf;*.txt;*.bmp;*.ppt;*.pptx',
'multi': true,
'auto': false,
'onAllComplete': function () {
$find('NewFileUploadModalPopupExtender').hide();
$(document).ready(function () {
$('#ContentPlaceHolder1_ImageButton4').trigger('click');
});
},
);
public class Upload : IHttpHandler, System.Web.SessionState.IRequiresSessionState
{
public void ProcessRequest(HttpContext context)
{
if (HttpContext.Current.Session["strFilepath"] != null && HttpContext.Current.Session["strParentID"] != null)
{
HttpFileCollection fileCollection = context.Request.Files;
if (context.Request.Files.Count > 0)
{
string filepath = HttpContext.Current.Session["strFilepath"] as string;
string parentid = HttpContext.Current.Session["strParentID"] as string;
for (int j = 0; j <= context.Request.Files.Count - 1; j++)
{
HttpPostedFile uploadFile = context.Request.Files[j];
TUIPortal.Core.ImageUtilities objNew = new TUIPortal.Core.ImageUtilities();
if ((CheckFileExtension(System.IO.Path.GetExtension(uploadFile.FileName)) == true) && CheckMaximumFileSize(uploadFile.ContentLength) == true)
{
string strFileName = objNew.DoUpload(uploadFile, filepath, int.Parse(parentid));
}
}
}}
Hi here i am using this code for file uploading but handler page doesn't not return session value only firefox. IE and Chrome working perfect i got solution but webconfig file
<sessionstate timeout="20" cookieless="true"></sessionstate>
i include cookieless working fine but session id displaying url how to solve this issues any one help me