Get uploaded client path

2 posts, 1 answers
  1. Nelson
    Nelson avatar
    1 posts
    Member since:
    Aug 2008

    Posted 09 Jun 2010 Link to this post

    Hello,
    I'm using RadAsyncUpload and "OnClientFileUploading" I need to get the filename path. Internet explorer works fine, but in the other browsers eventArgs.get_fileName(); only returns filename without the path. Is there a way to get full path name in all browsers ?
    Sample code :

    javascript:

     

    function onClientFileUploading(sender, eventArgs) {  
        try {  
            var fileName = eventArgs.get_fileName();  
     
            $(".ErrorHolder").append(fileName).fadeIn("slow");  
        }  
        catch (e) {  
            handleError(e);  
        }  
    }  
     

     

     

    Aspx page:

     

     <div class="ErrorHolder">  
                        <telerik:RadAsyncUpload ID="RadAsyncUpload1" runat="server"   
                            AllowedFileExtensions="jpg" InputSize="42"   
                            MaxFileSize="1048576" OnClientFileUploaded="clientFileUploaded"   
                            OnClientFileUploading="onClientFileUploading"   
                            OnClientValidationFailed="validationFailed"   
                            OnFileUploaded="RadAsyncUpload1_FileUploaded"   
                            OnValidatingFile="RadAsyncUpload1_ValidatingFile" 
                            OverwriteExistingFiles="True"   
                            ReadOnlyFileInputs="True" TargetFolder="./Tmp">  
     
                        </telerik:RadAsyncUpload> 
             </div> 
     
  2. Answer
    Dimitar Milushev
    Admin
    Dimitar Milushev avatar
    555 posts

    Posted 10 Jun 2010 Link to this post

    Hi Nelson,

    This is considered a security issue so other browsers do not provide this information and IE8 has been fixed to provide a "fake" path as well.

    Kind regards,
    Dimitar Milushev
    the Telerik team

    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 Public Issue Tracking system and vote to affect the priority of the items.
Back to Top