Hi telerik,
I have a file which is having long file name, when i upload file in RadAsyncUpload the file name is looking too strange.
please help me to solve this.
thanks in advance.
Veeresh
I have a file which is having long file name, when i upload file in RadAsyncUpload the file name is looking too strange.
please help me to solve this.
thanks in advance.
Veeresh
7 Answers, 1 is accepted
0
sri
Top achievements
Rank 1
answered on 11 Jun 2013, 09:50 AM
Hi,
I have similar problem.Is there any way to wrap test and display complete filename in the tooltip?
I have similar problem.Is there any way to wrap test and display complete filename in the tooltip?
0
Shinu
Top achievements
Rank 2
answered on 11 Jun 2013, 10:52 AM
Hi,
Try the following javascript to achieve your scenario.
ASPX:
JS:
Thanks,
Shinu.
Try the following javascript to achieve your scenario.
ASPX:
<telerik:RadAsyncUpload OnClientFileUploaded="fileSelected" ID="RadAsyncUpload1" runat="server"></telerik:RadAsyncUpload><telerik:RadToolTip runat="server" ID="tooltip1" TargetControlID="ClientID" IsClientID="true"></telerik:RadToolTip>JS:
function fileSelected(sender, args) { var $span = $telerik.$(".ruUploadProgress", args.get_row()); var name = $span.text(); if (name.length > 15) { var newString = name.substring(0, 15) + '...'; $span.text(newString); } // to add tooltip var radToolTip = $find("<%= tooltip1.ClientID %>"); var RadAsyncUpload1 = $find("<%=RadAsyncUpload1.ClientID%>"); radToolTip.set_targetControlID("RadAsyncUpload1"); radToolTip.set_text(name);}Thanks,
Shinu.
0
Wired_Nerve
Top achievements
Rank 2
answered on 25 Oct 2013, 06:33 PM
Great solution.. thanks
0
Sameer
Top achievements
Rank 1
answered on 30 Oct 2013, 08:40 AM
Hello Shinu, in my case the issue is something different. When I upload a file with a very lengthy name, the file is shown with red marker as if I have uploaded an invalid file. This happens in Firefox 23 and not in IE. Why?
0
Shinu
Top achievements
Rank 2
answered on 30 Oct 2013, 09:28 AM
Hi Sameer,
Such an issue happens in older versions of Firefox when you try to upload files with lengthy file names using the File Api Upload module. As a temporary solution, try the following JavaScript.
JavaScript:
Thanks,
Shinu.
Such an issue happens in older versions of Firefox when you try to upload files with lengthy file names using the File Api Upload module. As a temporary solution, try the following JavaScript.
JavaScript:
<script type="text/javascript"> Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; }</script>Thanks,
Shinu.
0
Sameer
Top achievements
Rank 1
answered on 30 Oct 2013, 01:06 PM
Thanks shinu. It worked great.
0
hunderson
Top achievements
Rank 1
answered on 18 Apr 2017, 10:36 PM
Hy,i had the same problem as you.For me (long_path_tool) helped me a lot.I am sure it will help you too.