Possible Duplicate:
how to resolve the C:\fakepath?
Can I get full path of an uploaded file using JavaScript? I tried asyncfileuploder but I am getting file name only. How to get full path using JavaScript? Also, how can I get full path with different methods?
<ContentTemplate>
<cc1:AsyncFileUpload runat="server" ID="uploadExcelFle" UploaderStyle="Modern"
ThrobberID="imgLoader" OnClientUploadStarted="uploadClientStarted"/>
</ContentTemplate>
function uploadClientStarted(sender, args) {
var fileName = args.get_fileName();
var fileExt = fileName.substring(fileName.lastIndexOf(".") + 1);
var filePath = args.get_path();
}