Welcome Guest Search | Active Topics | Sign In | Register

Ajax Uploader : .ClientSideOnChange and .getPostedFiles() Options
Phil
Posted: Monday, April 18, 2011 6:05:31 AM
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"

eo_support
Posted: Monday, April 18, 2011 5:15:34 PM
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!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.