This is a migrated thread and some comments may be shown as answers.

Getting File Names from UploadControl....

1 Answer 26 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
raaj
Top achievements
Rank 1
raaj asked on 12 Jun 2010, 04:35 AM
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.

1 Answer, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 14 Jun 2010, 02:25 PM
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.
Tags
Upload (Obsolete)
Asked by
raaj
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Share this question
or