IE8 upload control shows "c:\fakepath\"

Simon

Full path is returned only in Internet Explorer 6 and 7. The rest of the browsers do not support it so we have decided to implement the property in a standard way, i.e. it returns null. What is more the 'fake' path returned by IE8 is a feature of the browser, driven by security considerations. Finally from a developer point of view the path of the file on the client machine in most cases is irrelevant on the server where the file is uploaded as there the file resides on a different file structure. I hope this helps.

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now

But it only replace the string not the actual value. After selecting a file when i hover over the upload control tooltip shows "C:\fakepath\filename.zip". So still i'm unable to upload files.
I'm using RadControls for ASP.NET AJAX Q3 2009 SP1, because, my client want this project under this version of telerik.
So,how can i solve this ?

Genady Sergeev

There is no way to change the real value of the file input (it will always show fakepath under IE, it is a security restriction that does not allow one to change it), however, you can change the title attribute of the input to change the tooltip.

Here is some sample code:

args.get_fileInputField().tootlip = "E:\\Itpeople";

Kind regards,
Genady Sergeev
the Telerik team

If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks or appropriate markings.