Re: How to modify file name

  •  04-09-2013, 9:57 AM

    Re: How to modify file name

    HI rajbhagat,

     

    Please try the example page below, it wil use ... to replace the long file name when uploading.

     

    1. <%@ Page Language="C#" Title="Customize the queue UI" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <style>  
    8.         .AjaxUploaderProgressInfoText  
    9.         {  
    10.            /*use ... to replace the long file name*/  
    11.            display: block;width: 300px;overflow: hidden;white-space: nowrap;-o-text-overflow: ellipsis;text-overflow: ellipsis;  
    12.         }  
    13.           
    14. </style>  
    15. </head>  
    16. <body>  
    17.     <form id="Form1" runat="server">  
    18.         <div>  
    19.             <CuteWebUI:Uploader ID="UploadAttachments1" runat="server">  
    20.             </CuteWebUI:Uploader>  
    21.         </div>  
    22.     </form>  
    23. </body>  
    24.   
    25. <script>  
    26. var uploader=document.getElementById("<%=UploadAttachments1.ClientID %>");  
    27. uploader.handlequeueui=myqueueuihandler;  
    28. function myqueueuihandler(list)  
    29. {  
    30.     return false//hide the queue table;  
    31. }  
    32. </script>  
    33.   
    34. </html>  
     

    Regards,

     

    Ken 

View Complete Thread