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

Get uploaded client path

1 Answer 91 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Nelson
Top achievements
Rank 1
Nelson asked on 09 Jun 2010, 06:38 PM
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> 
 

1 Answer, 1 is accepted

Sort by
0
Accepted
Dimitar Milushev
Telerik team
answered on 10 Jun 2010, 11:18 AM
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.
Tags
AsyncUpload
Asked by
Nelson
Top achievements
Rank 1
Answers by
Dimitar Milushev
Telerik team
Share this question
or