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

Notification

Icon
Error

Options
Go to last post Go to first unread
Penguinov  
#1 Posted : Monday, October 20, 2014 8:29:00 PM(UTC)
Penguinov

Rank: Newbie

Groups: Member
Joined: 10/20/2014(UTC)
Posts: 1

Hi, I just start using Aurigma Uploader in my web app and would like to ask you something. Do you have any event such as 'AfterFilesAdded' or something ? I would like to create my own button and put it in the other location and that button can be enabled when files added and disabled when all files removed.

One more question, do you have any method that perform the manually file adding, uploading or removing ? I would like to create another button like the above scenario.
Andrew  
#2 Posted : Thursday, October 23, 2014 4:22:43 AM(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)
There is an event called uploadFileCountChange:

Code:
<script type="text/javascript">
function Uploader1_UploadFileCountChange(){
    //...your code...
}

$au.uploader({
    events: {
        //...other params...
        uploadFileCountChange: [Uploader1_UploadFileCountChange],
        //...other params...
    }
})</script>


As for other questions:
  • The upload() method is an equivalent to hitting the Upload button. The cancelUpload() stops this process.
  • The files().remove(i) method removes a file from upload list with a specified index.
  • Adding files is not possible in HTML5/Flash uploader. However probably we could emulate "Add files" button. Is it critical for you?

Edited by user Thursday, October 23, 2014 4:23:49 AM(UTC)  | Reason: Not specified

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.