How to get a full path of each selection

Thread is closed for posting
4 posts, 0 answers
  1. Mic
    Mic avatar
    7 posts
    Member since:
    Jan 2008

    Posted 05 Nov 2008 Link to this post

    I have this



    for (int i = 0; i < RadUpload1.UploadedFiles.Count; i++)




            TextBox1.Text = TextBox1.Text +




    This FileName method returns the file name ONLY. How can i get the full source path?

    For example if i upload from : c:/upload/test.jpg

    I want to print out the whole "c:/upload/test.jpg" , not just "test.jpg"

    Thank you!

  2. Erjan Gavalji
    Erjan Gavalji avatar
    1455 posts

    Posted 06 Nov 2008 Link to this post

    Hi Mic,

    Reporting the client-site path is controlled by the browser. For example, Internet Explorer has a security setting, named "Include local directory path when uploading files to a server", which is turned on by default. This is why when typically using Internet Explorer, RadUpload reports full paths as the Name property of an UploadedFile. In contrast, by default Firefox does not report the full path.

    Please, use the GetName() property to get consistent filename report behavior (without the path).

    I hope this helps.

    Kind regards,
    Erjan Gavalji
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Gautam
    Gautam avatar
    1 posts
    Member since:
    Jul 2015

    Posted 02 Jul 2015 Link to this post

    Is there anyway alternate way  to get full path after uploading ?
    For example if i upload from : c:/upload/test.jpg

    I want to print out the whole "c:/upload/test.jpg" , not just "test.jpg"
    Please help
  4. Nencho
    Nencho avatar
    1777 posts

    Posted 07 Jul 2015 Link to this post

    Hello Gautam,

    I am afraid that getting the full path from the file system of the client is restricted by the browsers. This limitation is caused due to security reasons.

    However, there are some workarounds and possible implementations. Please refer to the following forum thread for more information:

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top