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

5 posts, 1 answers
  1. Darshan
    Darshan avatar
    3 posts
    Member since:
    Nov 2010

    Posted 22 Nov 2010 Link to this post

    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;
    .getElementById("<%= txtPath.ClientID %>").value=input;

    Thanks In Advance

  2. Answer
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 22 Nov 2010 Link to this post

    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

  3. Darshan
    Darshan avatar
    3 posts
    Member since:
    Nov 2010

    Posted 23 Nov 2010 Link to this post

    Hi Princy,
    It works fine in new version of browser.
    Thanks for this update.
  4. Jeffrey
    Jeffrey avatar
    6 posts
    Member since:
    Jan 2019

    Posted 24 Jan 2019 Link to this post

    How do I get the name of the temporary file created by the radupload while uploading files?
  5. Rumen
    Rumen avatar
    14320 posts

    Posted 30 Jan 2019 Link to this post

    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:

    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.
Back to Top