Rank: Advanced Member Groups: Member
Joined: 11/16/2010 Posts: 48
|
How do I invoke a function when the user selects a file and how do I determine the name of the file selected?
I have several AjaxUploader on an ASPX page. I have tried this...
1. For each I set .ClientSideOnChange="setNextText" but when I click an Uploader and select a file, function setNextText(e) { alert("set next text");} is not invoked, but is it invoked after the file has been uploaded.
2. Again, once a file has been selected, alert("IsEmpty=" + eo_GetObject("Uploader_" + ndx).isEmpty() + " postedFiles length=" + eo_GetObject("Uploader_" + ndx).getPostedFiles().length); shows "IsEmpty=False postedFiles length=0"
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
This is normal. ClientSideOnChange is fired after the "uploaded file list" changes, which occurs after the file has been fully uploaded to the server.
Thanks!
|