c# - get full path through file uploader in Telerik -


i using telerik controls in asp.net

for uploading file using, radupload

i gone through following links:

http://www.telerik.com/community/forums/aspnet-ajax/upload/get-full-path-from-uplad-control.aspx#1044702

http://www.telerik.com/community/forums/aspnet-ajax/async-upload/how-to-get-full-path-using-radasyncupload-control.aspx

made code follows:

for (int = 0; < radupload1.uploadedfiles.count; i++)             {                 string filename= server.mappath( radupload1.uploadedfiles[i].getname());             } 

its giving me path:

e:\webbasednewsoft\newsoft\newsoft\colnames.xlsx 

this path solution files stored.

i wanted path of file selected upload.

eg. if uploaded file on c drive , should give me path:

c:\colnames.xlsx 

but not giving me appropriate path.

what mistake making?

what should appropriate line in loop??

please me.

the file path never contain path of client's computers, because software on server never allowed take peek inside clients computer. if server alles see inside clients computer have security issue.

the path getting local path @ server file has been uploaded.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -