This is a migrated thread and some comments may be shown as answers.

AllowedFileExtensions bug in IE 6

3 Answers 61 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Sebastien Desemberg
Top achievements
Rank 1
Sebastien Desemberg asked on 19 May 2010, 10:34 AM
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.





3 Answers, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 21 May 2010, 01:04 PM
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.
0
Sebastien Desemberg
Top achievements
Rank 1
answered on 21 May 2010, 01:51 PM
.
.
.
<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"));
});
0
Genady Sergeev
Telerik team
answered on 26 May 2010, 12:14 PM
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.
Tags
Upload (Obsolete)
Asked by
Sebastien Desemberg
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Sebastien Desemberg
Top achievements
Rank 1
Share this question
or