|
Rank: Newbie Groups: Member
Joined: 10/23/2007 Posts: 7
|
I have a need to be able to manually remove files from the PostedFiles array maintained by the control. I am "merging" the recently uploaded files with files that were previously uploaded into a single list - where I can allow the user to remove any of the files.
Internally I am keeping 2 lists, but visually I am showing them as one. Previously uploaded files I am maintaining in a separate list, so removing them is easy, but I cannot find a way to remove files via an API call from the AJAXUploader.
Help?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, I believe the uploader has a ClearPostedFiles function you can call: http://doc.essentialobjects.com/library/1/eo.web.ajaxuploader.clearpostedfiles.aspxThis should clear the PostedFiles array for you. Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/23/2007 Posts: 7
|
I tried that call, but it doesn't work. Also, is there no way to selectively clear a single file?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Please try the latest version first (you will need a new license file for the latest version, please use contact us page to contact us if you do not already have one yet).
I do not believe you can selectively clear a single file, if you want to do that, you will need to maintain your own list and use your own list for that purpose.
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 10/23/2007 Posts: 7
|
Question - are the files in the array stored in any particular sequence? In other words, is the first file in the array the last item to be uploaded on the FileUploaded event?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
No. You should not rely on the sequence of the file.
|
|