Programmatically Adding Files to the Queue Using Javascript

Last post 07-28-2011, 6:34 PM by Jeff. 1 replies.
Sort Posts: Previous Next
  •  07-28-2011, 10:44 AM 68970

    Programmatically Adding Files to the Queue Using Javascript

    I am new to the AjaxUploader, and I am trying to use it to manually start an upload of files the user has selected using the ui buttons and files that have been selected using other buttons on the page.  Is there a way to programmatically add files to the queue list using javascript? 
     
    I have also looked at the source code for the manual upload demo, and the javascript code seems to be using methods on the uploader element such as getqueuecount and startupload which I cannot find in the online documentation for the uploader.  Is there documentation available that describes the properties and methods of the uploader element that are available from javascript code?
     
    Thanks for any help! 
     
    Rich

     

  •  07-28-2011, 6:34 PM 68977 in reply to 68970

    Re: Programmatically Adding Files to the Queue Using Javascript

    Hi rmillergravic,
     
    Please refer the section javascript code below to view the properties or methods of uploader
    1. function CuteWebUI_AjaxUploader_OnInitialize()  
    2.     {  
    3.         var hidden=this;  
    4.         var arr=[];  
    5.         for(var p in hidden)  
    6.         {  
    7.            arr.push(p);  
    8.         }  
    9.         alert("uploader member list : "+arr);  
    10.     }  
     
     
    If you want to customize upload button, cancel button and so on, refer to http://ajaxuploader.com/document/index.htm#page=create-custom-upload-button.htm
     
    Hope it helps. 
     
     
    Regards,
    Jeff 
View as RSS news feed in XML