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!
Hi Geminiman,
Thank you for using our community. Can you specify with some more details what scenario do you need to achieve. If you just need to handle the case when a file is uploaded you can handle the FileUploded client event it will be fired when the file is completely uploaded on the server. Or you need to upload a picture and to show this picture once it is uploaded. Please clarify this in order for me to assist you further.
Looking forward to hear from you.
Sincerely,
Georgi Sashev
Developer Support Engineer
Infragistics, Inc.
http://es.infragistics.com/support
If you need any additional assistance with this feel free to contact me. Thank you for choosing Infragistics components.
Sincerely,Georgi SashevDeveloper Support EngineerInfragistics, Inc.http://es.infragistics.com/support
Partially because I couldn't get the event to fire consistently and partially because I don't want to overtick the plumbing with all of the extra handlers etc. I've switched to another jquery upload control.
I'd suggest that this control be allowed to work with just an uploadURL and a parameter list with values only completely decoupled from server side functionality in the future. Yes it may be desirable to do things the way it is in some cases but especially with HTML 5 most of that isn't required and that should be the default mode....