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:
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> |