Hi,
I have a question/problem about implementing my own handler.
I have follow the image uploader example in the demo but is seems that I cant get my handler to work.
To be more specific,if I have not set the radupload to use my handler it works as expected.
If I set it to use my handler (HttpHandlerUrl="~/CustomUploaderHandler.ashx") the uploading animation its always displayed and the file
isnt uploaded.One more thing is that I have set a breakpoint inside the Process method of the Handler but its not hitted.
Am I missing some configuration that is not mentioned in the demo?
the HttpHandler code:
I have a question/problem about implementing my own handler.
I have follow the image uploader example in the demo but is seems that I cant get my handler to work.
To be more specific,if I have not set the radupload to use my handler it works as expected.
If I set it to use my handler (HttpHandlerUrl="~/CustomUploaderHandler.ashx") the uploading animation its always displayed and the file
isnt uploaded.One more thing is that I have set a breakpoint inside the Process method of the Handler but its not hitted.
Am I missing some configuration that is not mentioned in the demo?
the HttpHandler code:
using System;using System.Collections.Generic;using System.Linq;using System.Web;using Telerik.Web.UI;namespace UploaderTest{ public class CustomUploadHandler : AsyncUploadHandler, System.Web.SessionState.IRequiresSessionState { protected override IAsyncUploadResult Process(UploadedFile file, HttpContext context, IAsyncUploadConfiguration configuration, string tempFileName) { base.Process(file, context, configuration, tempFileName);CustomAsyncUploadResult result = CreateDefaultUploadResult<CustomAsyncUploadResult>(file); return result; } }}