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

How to get entire file path of telerik RadUpload control in asp textbox at client side

4 Answers 450 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Darshan
Top achievements
Rank 1
Darshan asked on 22 Nov 2010, 07:12 AM

Hi, I am using RadUpload control of telerik. I have added Rad upload on page and one asp Text box. what I want to do is OnClientFileSelected event selected file path get added in asp Text box at client side. I did tried following ways but i got only file name i.e. test.text or test.doc. I do want to add entire path in asp text box like "C:\folder1\folder2\test1.txt". How should i do this.

function fileSelected(radUpload, eventArgs)
 
{
   
var input = eventArgs.get_fileInputField().value;
   document
.getElementById("<%= txtPath.ClientID %>").value=input;
 
}

Thanks In Advance

4 Answers, 1 is accepted

Sort by
0
Accepted
Princy
Top achievements
Rank 2
answered on 22 Nov 2010, 01:54 PM
Hello Darshan,


The path you retrieve is based on the browser that you are using. In IE6 and some older browsers FileName property of UploadedFile returns full path and some browsers retrieve the FileName only due to security reasons.
Get full path from uplad control


Checkout the following forum link for more information.
How to get a full path of each selection

Thanks,
Princy.
0
Darshan
Top achievements
Rank 1
answered on 23 Nov 2010, 10:11 AM
Hi Princy,
It works fine in new version of browser.
Thanks for this update.
0
Jeffrey
Top achievements
Rank 1
answered on 24 Jan 2019, 05:16 PM
How do I get the name of the temporary file created by the radupload while uploading files?
0
Rumen
Telerik team
answered on 30 Jan 2019, 10:28 AM
Hi Jeffrey,

Can you please confirm that you are talking about the obsolete RadUpload control, but not for the currently supported RadAsyncUpload? You can find the differences between them at RadAsyncUpload vs RadUpload.

Only RadAsyncUpload uploads the file(s) automatically and asynchronously to a temporary folder.

If your question applies to RadAsyncUpload check this forum: https://www.telerik.com/forums/read-the-temporary-file-name

Regards,
Rumen
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Darshan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Darshan
Top achievements
Rank 1
Jeffrey
Top achievements
Rank 1
Rumen
Telerik team
Share this question
or