Is it possible to show full file path with file name in AsyncUpload ?

2 posts, 1 answers
  1. Aravind
    Aravind avatar
    41 posts
    Member since:
    Jun 2013

    Posted 09 Jul 2013 Link to this post

    Hai everyone

       Is it possible to show file path with file in AsyncUpload control ?
     (e.g) C:/Program Files/Temp/a.txt 

    if i use asyncupload it show file name only ,but i want show full file path with file name ,above i mention e.g

    or is it possible show full path with file name in asp textbox and hide file name above in Asyncupload control ?


    or is it possible to full path with file name in RadUpload control ? or hide default textbox in radupload and show in asp text box with full path and file name ?


    Pls reply me asap
      Regards 
             Aravind
     
  2. Answer
    Hristo Valyavicharski
    Admin
    Hristo Valyavicharski avatar
    975 posts

    Posted 11 Jul 2013 Link to this post

    Hi Aravind,

    RadAsyncUpload's input actually is fake element. You cannot set text to it. However you could use jQuery to manipulate text of the selected files:
    <telerik:RadAsyncUpload
        ID="RadAsyncUpload1"
        OnClientFilesUploaded="OnClientFilesUploaded"
        TargetFolder="~/Uploads"
        runat="server">
    </telerik:RadAsyncUpload>

    function OnClientFilesUploaded(sender, args) {
        $('.ruUploadProgress.ruUploadSuccess').each(function() {
            $(this).html('C:/Program Files/Temp/' + $(this).html());
        });
    }


    Regards,
    Hristo Valyavicharski
    Telerik
    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 the blog feed now.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top