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

[Solved] SearchPattern / Exclude file types

1 Answer 74 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Tony
Top achievements
Rank 2
Tony asked on 09 Jul 2008, 05:48 PM
I have the following RadEditor control on my page. I want to limit file types allowed to upload in the DocumentManager. What I have allows .doc files to be uploaded but I get 'invalid file type' error for .txt and .pdf files. What is the correct syntax for the SearchPatterns property to limit allowed file types?

<telerik:RadEditor ID="RadEditor1" runat="server"">  
    <DocumentManager ViewPaths="~/support/upload/docs" UploadPaths="~/support/upload/docs" DeletePaths="~/support/upload/docs" SearchPatterns="*.doc, *.docx, *.pdf, *.txt" MaxUploadFileSize="2097152" /> 
    <Content></Content>  
</telerik:RadEditor> 
 

Thanks,
Tim

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 09 Jul 2008, 06:09 PM
Hi Timothy,

Please, remove the empty spaced between the different file types, e.g.

    <DocumentManager ViewPaths="~/support/upload/docs" UploadPaths="~/support/upload/docs" DeletePaths="~/support/upload/docs" SearchPatterns="*.doc,*.docx,*.pdf,*.txt" MaxUploadFileSize="2097152" />

Greetings,
Rumen
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Editor
Asked by
Tony
Top achievements
Rank 2
Answers by
Rumen
Telerik team
Share this question
or