Semi-Colon in filename

Last post 01-06-2009, 11:59 PM by ChrisThomas. 8 replies.
Sort Posts: Previous Next
  •  01-05-2009, 12:48 AM 47391

    Semi-Colon in filename

    When uploading a file if there is a semi colon in the filename, the uploader control ignores all the text after the semi colon.
     
    E.g. 

    filename is: 080617-Robertson FM & KM-Pre Review Questioinnaire.pdf


    filename on the upload control is comes through as: 080617


    What would cause this to happen??


    Chris
  •  01-05-2009, 1:36 AM 47393 in reply to 47391

    Re: Semi-Colon in filename

    Hi ChrisThomas,
     
    I can not reproduce this issue, the file name(080617-Robertson FM & KM-Pre Review Questioinnaire.pdf) works fine for me.
     
    Please try this example:
     

    <%@ 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 runat="server">
        <title>Untitled Page</title>
    </head>
    <body>
        <form id="form1" runat="server">
            <div>
                <CuteWebUI:Uploader ID="uploader1" runat="server" OnFileUploaded="uploader1_FileUploaded">
                </CuteWebUI:Uploader>
                <asp:Label ID="label1" runat="server"></asp:Label>
            </div>
        </form>
    </body>
    </html>
     
    When I uploaded the file(080617-Robertson FM & KM-Pre Review Questioinnaire.pdf), the file name has not changed.
     
     
    Regards,
     
    Ken
  •  01-05-2009, 4:57 PM 47422 in reply to 47393

    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
  •  01-05-2009, 8:28 PM 47434 in reply to 47422

    Re: Semi-Colon in filename

    Chris,
     
    It's really a strange problem that it relative the PDF extension.
     
    But I currently are not able to reproduce this problem.
     
    Can you upload it to our online example ?
     
    We need know which cause this issue, the browsers? or servers.
     
    Regards,
    Terry
  •  01-05-2009, 9:34 PM 47440 in reply to 47434

    Re: Semi-Colon in filename

    When I use the sample page at http://www.ajaxuploader.com/Demo/select-multiple-files-upload.aspx I get the same problem.
     
    I tried uploading a file named:  November;2008.pdf
     
     
     
    Once the upload was completed, the filename in the server trace was only November
     
     
     
    Seems to happen with both firefox 3.0.5 and IE7
  •  01-05-2009, 10:38 PM 47443 in reply to 47440

    Re: Semi-Colon in filename

    The original user of our system who found this problem has come back with more information that may be helpful in determining the problem.
     
    It's not actually happening just on PDF files, but on any file that's size is over 200 kB. I only noticed it on PDF's because the ones I was uploading were all over 200 kB, but when I uploaded a txt file it was usually very small.
     
    I have been able to reproduce the problem with other file types, if they are over 200kB and have a semi colon.
     
    Cheers,
    Chris
  •  01-06-2009, 12:10 AM 47447 in reply to 47443

    Re: Semi-Colon in filename

    Chris,
     
    You are right.
     
    I can reproduce this error now.
     
    And have found the reason.
     
    We can fix it soon, and provide an update a few days later with other recent changes.
     
    Thanks.
     
    Regards,
    Terry
  •  01-06-2009, 11:42 PM 47479 in reply to 47447

    Re: Semi-Colon in filename

    Hi,

    We have upload the new version,  Please download it again.
     
    Regards,
    Terry
  •  01-06-2009, 11:59 PM 47481 in reply to 47479

    Re: Semi-Colon in filename

    Thank you for the quick response. That solved the problem.
View as RSS news feed in XML