AllowedFileExtensions bug in IE 6

Thread is closed for posting
4 posts, 0 answers
  1. Sebastien Desemberg
    Sebastien Desemberg avatar
    15 posts
    Member since:
    Nov 2009

    Posted 19 May 2010 Link to this post

    HI all,

    When I use the AllowedFileExtensions property of the RadUpload, it works fine in FF, Chrome, IE8 and Safari. However, it never validates in IE6. Please Help.

    Usage:
     <telerik:RadUpload ID="fileUploadCv" runat="server" ControlObjectsVisibility="None"                             AllowedFileExtensions=".doc,.docx,.pdf,.rtf" BorderStyle="None">
    </telerik:RadUpload>
    <asp:CustomValidator ID="Customvalidator1" runat="server" Display="None" ClientValidationFunction="validateRadUpload1"
                                    ValidationGroup="VgRegister" ErrorMessage="Invalid file type for cv"></asp:CustomValidator>


    I am always getting the ErrorMessage defined in the CustomValidator.





  2. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 21 May 2010 Link to this post

    Hello Sebastien Desemberg,

    From the declarations that you have pasted I can't your client-validation function. Could you paste it here so that we can take a look at it? As far as we now, there aren't any known issues regarding the validation and IE 6.0.

    Best wishes,
    Genady Sergeev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Sebastien Desemberg
    Sebastien Desemberg avatar
    15 posts
    Member since:
    Nov 2009

    Posted 21 May 2010 Link to this post

    .
    .
    .
    <TR>
    <TD>CV*<BR><SPAN id=ctl00_ContentPlaceHolder1_UploadAllowedFiles>Allowed files: doc, docx, pdf, rtf</SPAN> </TD>
    <TD>
    <DIV class="RadUpload RadUpload_Default " id=ctl00_ContentPlaceHolder1_fileUploadCv style="BORDER-TOP-STYLE: none; BORDER-RIGHT-STYLE: none; BORDER-LEFT-STYLE: none; BORDER-BOTTOM-STYLE: none"><!-- 2010.1.309.35 --><INPUT id=ctl00_ContentPlaceHolder1_fileUploadCv_ClientState type=hidden name=ctl00_ContentPlaceHolder1_fileUploadCv_ClientState autocomplete="off">
    <UL class=ruInputs id=ctl00_ContentPlaceHolder1_fileUploadCvListContainer>
    <LI><SPAN class="ruFileWrap ruStyled" style="POSITION: static"><INPUT class=ruFileInput id=ctl00_ContentPlaceHolder1_fileUploadCvfile0 title=C:\Users\developer\Desktop\jot-upload-test.doc style="LEFT: 0px; POSITION: absolute; TOP: -5000px" type=file alt=C:\Users\developer\Desktop\jot-upload-test.doc size=23 value=C:\Users\developer\Desktop\jot-upload-test.doc><INPUT class=ruFakeInput title=[object] size=22 value=jot-upload-test.doc><INPUT class="ruButton ruBrowse" type=button value=Select></SPAN></LI></UL></DIV><SPAN id=ctl00_ContentPlaceHolder1_Customvalidator1 style="DISPLAY: none; COLOR: red" errormessage="Invalid file type for cv" validationGroup="VgRegister" isvalid="undefined" display="None" clientvalidationfunction="validateRadUpload1"></SPAN><SPAN id=ctl00_ContentPlaceHolder1_RadProgressManager1><INPUT id=ctl00_ContentPlaceHolder1_RadProgressManager1_ClientState type=hidden name=ctl00_ContentPlaceHolder1_RadProgressManager1_ClientState autocomplete="off"></SPAN> </TD></TR>
    .
    .
    .

    Sys.Application.add_init(function() {
        $create(Telerik.Web.UI.RadUpload, {"_skin":"Default","allowedFileExtensions":"[\".doc\",\".docx\",\".pdf\",\".rtf\"]","clientStateFieldID":"ctl00_ContentPlaceHolder1_fileUploadCv_ClientState","controlObjectsVisibility":0,"localization":{"Select":"Select","Remove":"Remove","Add":"Add","Clear":"Clear","Delete":"Delete"},"readOnlyFileInputs":false}, null, null, $get("ctl00_ContentPlaceHolder1_fileUploadCv"));
    });
  5. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 26 May 2010 Link to this post

    Hello Sebastien Desemberg,

    I meant the validateRadUpload1 function which you have declared as client validation function forCustomValidator1.

    <telerik:RadUpload ID="fileUploadCv" runat="server" ControlObjectsVisibility="None"                             AllowedFileExtensions=".doc,.docx,.pdf,.rtf" BorderStyle="None">
    </telerik:RadUpload>
    <asp:CustomValidator ID="Customvalidator1" runat="server" Display="None" ClientValidationFunction="validateRadUpload1"
                                    ValidationGroup="VgRegister" ErrorMessage="Invalid file type for cv"></asp:CustomValidator>

    I suppose that for some reason it is always returning false which means that the error message will be always displayed. Just as it is in your case.

    Sincerely yours,
    Genady Sergeev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top