Getting Information During Upload

Last post 10-23-2012, 7:49 AM by Kenneth. 1 replies.
Sort Posts: Previous Next
  •  10-23-2012, 7:28 AM 75039

    Getting Information During Upload

    Hi, 

     

    I am looking for a way to get data during the upload. Example: Writing Current Upload Percentage and Speed for a currently running upload to a database. I would like to do this to establish a kind of admin interface to see the progress of a current upload. Is this possible?


    Thanks in advance! 

  •  10-23-2012, 7:49 AM 75040 in reply to 75039

    Re: Getting Information During Upload

    Hi faxe360,

     

    You can get the progress info in API "CuteWebUI_AjaxUploader_OnProgress".

     

    1. //Fires when new information about the upload progress for a specific file is available.  
    2. function CuteWebUI_AjaxUploader_OnProgress(enable,filename,begintime,uploadedsize,totalsize)  
    3. {  
    4.     var hidden=this;  
    5.     if(enable)  
    6.     {  
    7.        if(totalsize)  
    8.        {  
    9.          document.title=filename+" - "+Math.floor(100*uploadedsize/totalsize)+'%'  
    10.        }  
    11.        else  
    12.        {  
    13.        }  
    14.     }  
    15.     else  
    16.     {  
    17.     }  
    18.     return false; //hide the default UI.  
    19. }  
     

    More API please refer to http://www.ajaxuploader.com/document/scr/html/JavaScript-API.htm

     

    Regards,

     

    Ken 

View as RSS news feed in XML