Getting File Names from UploadControl....

Thread is closed for posting
2 posts, 0 answers
  1. raaj
    raaj avatar
    53 posts
    Member since:
    Jan 2010

    Posted 11 Jun 2010 Link to this post

    Team,

    Am using RadUpload control for one of the purpose in my application.

    My aim is to get all the file names added to the control in the sequence order.

    Screen shot is attached.

    For ex. My output should be C:\Test1.doc, C:\Test2.doc, C:\Test3.doc, C:\Test4.doc, C:\Test5.doc

    Pls. help me out.

    Thanks.
  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 14 Jun 2010 Link to this post

    Hello Rajesh,

    You can retrieve the filenames from client side by using folowing code.

    Client code:
     
        function getFileNames() {  
            var ul = $find("<%= RadUpload3.ClientID %>");  
            var inputs = ul.getFileInputs();  
            for (i = 0; i < inputs.length; i++) {  
                alert(inputs[i].value); // Alerts the filename  
            }  
        } 

    Regards,
    Princy.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top