Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
2350
igUpload Server side events not being called in 13.2.2364
posted

In my MVC application, I have a server side event that gets attached to the UploadProgressManager:

        public ActionResult ImportIndex()
        {
            UploadProgressManager.Instance.AddFinishingUploadEventHandler("serverID1", new EventHandler<UploadFinishingEventArgs>(handler));
            ImportViewModel viewModel = new ImportViewModel();
            return View("ImportIndex", viewModel);
        }
        protected void handler(object sender, UploadFinishingEventArgs args)
        {
            ServerFileHlpr.UploadHandler(this, args);
        }
My "handler" method is not being called when I upload a file.  This was working fine in version 13.2.2300, but broke when I upgraded to 13.2.2364.  My file IS being uploaded, but my "handler" event is not being called.  Here is the rest of my code:
ImportIndex.cshtml:
      @(Html.Infragistics().Upload()
        .ID("igUpload1")
        .AutoStartUpload(true)
        //.Mode(UploadMode.Single)
        .FileSizeMetric(UploadSizeMetric.MBytes)   
        .MaxSimultaneousFilesUploads(1)
        .ErrorMessageMaxUploadedFiles("Max Uploads Exceeded")
        .ProgressUrl(Url.Content("~/IGUploadStatusHandler.ashx"))
        .ControlId("serverID1")
        .Render())
Web.Config:
    <modules runAllManagedModulesForAllRequests="true">
      <add name="IGUploadModule" type="Infragistics.Web.Mvc.UploadModule" preCondition="managedHandler" />
    </modules>
    <handlers>
      <add name="IGUploadStatusHandler" path="IGUploadStatusHandler.ashx" verb="*" type="Infragistics.Web.Mvc.UploadStatusHandler" preCondition="integratedMode" />
    </handlers>
Please let me know if there is a fix or work-around to get this to work in 13.2.2364.
Thanks,
Paul