Welcome Guest! You need to login or register to make posts.

Notification

Icon
Error

Options
Go to last post Go to first unread
fotomike  
#1 Posted : Friday, September 6, 2013 5:08:59 AM(UTC)
fotomike

Rank: Newbie

Groups: Member
Joined: 12/14/2008(UTC)
Posts: 2

Thanks: 1 times
Hi,

we are using the HTML5/Flash-Uploader. By clicking the "remove all files"-Button all files from the uploadPane are removed immediately. Is it possible to ask the user to confirm if he actually wants to remove all files instead of removing them directly? We didn't find anything in the documentation...

Meanwhile we've tried to make a own button for removing the files with: $au.uploader('uploaderID').uploadPane().removeAllFiles();

...but if we try this, a javscript error occurs and says "....removeAllFiles(); is not a function".

Thanks for your help ;)

Edited by user Friday, September 6, 2013 5:49:08 AM(UTC)  | Reason: Not specified

Andrew  
#2 Posted : Sunday, September 8, 2013 7:41:22 PM(UTC)
Andrew

Rank: Advanced Member

Groups: Member, Administration
Joined: 8/2/2003(UTC)
Posts: 868

Thanks: 2 times
Was thanked: 26 time(s) in 26 post(s)
Quote:
we are using the HTML5/Flash-Uploader. By clicking the "remove all files"-Button all files from the uploadPane are removed immediately. Is it possible to ask the user to confirm if he actually wants to remove all files instead of removing them directly? We didn't find anything in the documentation...


No, unfortunately this feature is not available. I have submitted it to developers. We will consider adding this feature in future releases.

Quote:
Meanwhile we've tried to make a own button for removing the files with: $au.uploader('uploaderID').uploadPane().removeAllFiles();


The removeAllFiles method is available in ActiveX/Java version only. Unfortunately, HTML5/Flash version does not have it.

However, there is still a method to remove files from the upload list - the files() collection has an ability to remove a particular item from the upload list. So all you need is to remove items one by one:

Code:
var uploadFileList = $au.imageUploaderFlash('uploaderID').files();
while(uploadFileList.count()>0){
  uploadFileList.remove(0);
}


Hope this helps.
thanks 1 user thanked Andrew for this useful post.
fotomike on 9/12/2013(UTC)
Users browsing this topic
Forum Jump  
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.