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
560
No Status or Complete client side event if uploadUrl specified
posted

I have a igUpload that if I don't specify the uploadUrl will work fine with progress etc and will upload a file to a temp directory.

However I can't use any of the events outlined like so:

UploadProgressManager upm = UploadProgressManager.Instance;

upm.AddFinishingUploadEventHandler("ucProfilePhoto", this.OnFileFinishing);

 

Because first the AddFinishingUploadEventHandler function gets called when the status is starting, not just when finishing, and second there is not HttpContext.Current.User so there is no way to go and handle the file and put it somewhere intelligent.

Thus I have to use the uploadUrl property and specify an action to go to. It gets called and I return 202 back from the handler, but there is no progress while the file is uploading (even though there is when no uploadUrl is specified with the exact same settings) and the client side events do not fire when the response is received on the client side for the UploadFinished.

(yes I have the entries in the web.config as per the help documentation and they're working as per above)

What am I doing wrong?

I'm just trying to upload a single file and refresh an image once the file is complete but no dice.

Thanks!