I also have the same requirement also. I can get the Full path using RadUpload or Stand dard Asp.net file upload control. Unfornuately can't get the same result set using RadAsyncUpload. B/c of Due to some security restrictions.
How is possible it works in other 2 controls except RadAsyncUpload? Is there any other work around (i.e. store the Full Path in Session variable etc???) Below is my code declaration. Thanks
function
RadUpload1_Selected(sender, args)
{
var
upload = $find(
"<%= RadUpload1.ClientID %>"
)
var
filePath = upload.getFileInputs()[0].value;
var
fileName = filePath.substring(filePath.lastIndexOf(
"\\"
) + 1);
alert(filePath);
alert(fileName);
}
function
AsyncUpload_Selected(sender, args) {
var
currentFileName = args.get_fileName();
alert(currentFileName);
}
<telerik:RadUpload ID=
"RadUpload1"
OnClientFileSelected=
"RadUpload1_Selected"
Width=
"500px"
MaxFileInputsCount=
"1"
MaxFileSize=
"50971520"
AllowedFileExtensions=
"csv"
ControlObjectsVisibility=
"RemoveButtons"
runat=
"server"
Skin=
"Silk"
>
</telerik:RadUpload>
<br />
<telerik:RadAsyncUpload runat=
"server"
ID=
"RadAsyncUpload1"
AllowedFileExtensions=
"csv"
MultipleFileSelection=
"Disabled"
DisabledPlugins=
"true"
OnClientFileSelected=
"AsyncUpload_Selected"
MaxFileSize=
"50971520"
Skin=
"Silk"
UploadedFilesRendering=
"BelowFileInput"
>
</telerik:RadAsyncUpload>