Get FilePath Uploader (ASAP..)

  •  06-21-2010, 6:08 AM

    Get FilePath Uploader (ASAP..)

    Hi nice guys,
     
    I want to display photos after user choose multifiles from uploader box(but not yet upload)
    So I have th code like this:
     
    <script>
                    uploader=document.getElementById("<%=FileInput.ClientID %>");
                    uploader.handlequeueui=myqueueuihandler;
                    
                    function myqueueuihandler(list)
                    {
                         pNumFileTotal = list.length;
                         if(list.length > 0)                                         
                         {                      
                          var container=document.getElementById("DivListFileNamePhoto");
                          container.innerHTML="";
                          
                          var table=document.createElement("table");
                          table.style.borderCollapse="collapse";
                          table.cellSpacing=0;
                          table.cellPadding=4;  
                          table.className = 'text_333333';                                          
     
                          for(var i=0;i<list.length;i++)
                          {
                               var name=list[i ].FileName
                               var size=Math.round(list[i ].FileSize / 1024 ) // (or -1)
                               var stat=list[i ].Status // Finish|Error|Upload|Queue
                               var func=list[i ].Cancel;
                               
                               var row=table.insertRow(-1);
                               row.className = 'MyPhoto_Add-td';
                               row.insertCell(-1).innerHTML=name + ' (' + size + ' Kb)';
                               
                               var last=row.insertCell(-1);                       
                          }
                          
                          container.appendChild(table);
                          
                          document.getElementById('DivSubmitUpload').style.display = '';
                         }
                        return false; //hide the default;
                    }
    </script>
     
    How can I get full path of FileName to its the photos?
     
    Thanks for advance,
     
    Tam Phan
    vantamvtf@yahoo.com
View Complete Thread