Re: Semi-Colon in filename

  •  01-05-2009, 4:57 PM

    Re: Semi-Colon in filename

    I tried your example code and it worked.
     
    However I was having problems with the UploadAttachments control.

    I change the code to be the following
     
    <%@ Page Language="C#" %>

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <script runat="server">
        protected void uploader1_FileUploaded(object sender, UploaderEventArgs args)
        {
            label1.Text = args.FileName;
            //args.CopyTo("c://test//" + args.FileName);
        }

     
    </script>
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
            <cutewebui:uploadattachments  TableHeaderTemplate="<td></td><td>Files</td><td>Description</td>" TableStyle-Width="400px" ShowFileIcons="true" id="uaMultipleDocuments" runat="server" InsertText="Select files to upload" >
                <INSERTBUTTONSTYLE/>
                <HeaderRowStyle CssClass="Heading" />
                <ItemTemplate><asp:TextBox ID="txtDescription" runat="server"></asp:TextBox></ItemTemplate>
            </cutewebui:uploadattachments>
                <asp:Label ID="label1" runat="server"></asp:Label>
            </div>
        </form>
    </body>
    </html>
     
    Whenever I upload a pdf file with a semi colon in it, it misses everything after the semi colon. I was only able to reproduce this error with PDF files, not with other file types.
     
     
    Also with my previous examply the filename was  080617;Robertson FM & KM;Pre Review Questioinnaire.pdf, with ; instead of the -
     
    Cheers,
    Chris
View Complete Thread