Remove the file size when adding attachments

Last post 05-18-2010, 10:05 AM by retrocoder. 4 replies.
Sort Posts: Previous Next
  •  05-18-2010, 4:35 AM 61091

    Remove the file size when adding attachments

     

    When I add a file to the “CuteWebUI:UploadAttachments”control, I am shown the file name and its size in brackets. Is there a way for it not to show the size?

    Filed under:
  •  05-18-2010, 8:47 AM 61099 in reply to 61091

    Re: Remove the file size when adding attachments

    You can set ItemTextTemplate="",  and try it again, API can be found in http://ajaxuploader.com/document/scr/CuteWebUI.UploadFileBase.ItemTextTemplate.html
     
    Regards,
    Eric
  •  05-18-2010, 9:15 AM 61102 in reply to 61099

    Re: Remove the file size when adding attachments

    Using this method gets rid of the size in bytes but also the filename. I'd like to just show the name and not it's size.
  •  05-18-2010, 9:59 AM 61104 in reply to 61102

    Re: Remove the file size when adding attachments

    Please try the following code:
     
                                <CuteWebUI:UploadAttachments runat="server" ItemTextTemplate="{0}" ID="Attachments1"                                                 
                                               OnAttachmentAdded="Attachments1_AttachmentAdded">
                                </CuteWebUI:UploadAttachments>
     
    Regards,
    Eric
  •  05-18-2010, 10:05 AM 61105 in reply to 61104

    Re: Remove the file size when adding attachments

    That's fixed it. I now see just the file name which is what I need. Many thanks.
View as RSS news feed in XML