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

RadUpload always return false while validation of 4 char file extension!

1 Answer 66 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Ahmed
Top achievements
Rank 1
Ahmed asked on 05 Jan 2011, 08:21 AM

I use the following code for RadUpload control

<telerik:RadUpload ID="rdUploadCertificate" CssClass="rad-upload" runat="server" ControlObjectsVisibility="ClearButtons" AllowedFileExtensions=".doc, .docx" InitialFileInputsCount="1" MaxFileInputsCount="1"></telerik:RadUpload>

But while uploading a docx files, extension validation return false. I've tried it also for .xlsx.

I use the following code to validate file extension

return $find('<%= rdUploadCertificate.ClientID %>').validateExtensions();

Am I missing anything?

1 Answer, 1 is accepted

Sort by
0
Accepted
Shinu
Top achievements
Rank 2
answered on 05 Jan 2011, 10:44 AM
Hello,


I also replicated same only when there is extra space in specifying AllowedFileExtensions values like:
                  AllowedFileExtensions=".doc, .docx"

And the following mark-up worked well for me. Try this code and see whether that helps.
<telerik:RadUpload ID="rdUploadCertificate" CssClass="rad-upload" runat="server"
    ControlObjectsVisibility="ClearButtons" AllowedFileExtensions=".doc,.docx" InitialFileInputsCount="1" MaxFileInputsCount="1">
</telerik:RadUpload>



-Shinu.
Tags
Upload (Obsolete)
Asked by
Ahmed
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or