Welcome Guest Search | Active Topics | Sign In | Register

Manually removing files from PostedFiles array Options
Tommy Joyner
Posted: Thursday, February 5, 2009 4:26:20 PM
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?
eo_support
Posted: Thursday, February 5, 2009 4:30:03 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,091
Hi,

I believe the uploader has a ClearPostedFiles function you can call:

http://doc.essentialobjects.com/library/1/eo.web.ajaxuploader.clearpostedfiles.aspx

This should clear the PostedFiles array for you.

Thanks!
Tommy Joyner
Posted: Thursday, February 5, 2009 4:39:26 PM
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?
eo_support
Posted: Thursday, February 5, 2009 4:47:27 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,091
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!
Tommy Joyner
Posted: Friday, February 6, 2009 9:05:27 AM
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?
eo_support
Posted: Friday, February 6, 2009 9:11:29 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,091
No. You should not rely on the sequence of the file.


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.