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

Editor Document Manager set the file extensions allowed

1 Answer 291 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Somya
Top achievements
Rank 1
Somya asked on 11 Nov 2011, 01:11 AM
Hi there,

I am trying to create an editor programmatically.

A part of my code is :

RadEditor _editor = new RadEditor();
/*Document Manager*/
string documentsPath = "Library/Documents/";           
_editor.DocumentManager.UploadPaths = new string[] { documentsPath };
_editor.DocumentManager.ViewPaths = new string[] { documentsPath };
_editor.DocumentManager.DeletePaths = new string[] { documentsPath };
_editor.DocumentManager.SearchPatterns = new string[] { "*.doc,*.txt,*.docx,*.xls,*.xlsx,*.pdf,*.jpg,*.jpeg,*.eps" };
_editor.DocumentManager.MaxUploadFileSize = 104857600;

It is reading the new extensions allowed, but is neither pulling in the old documents uploaded previously via Document Manager, nor is allowing me to upload any other document. I have attached the screen shots. 

Please help!

1 Answer, 1 is accepted

Sort by
0
Somya
Top achievements
Rank 1
answered on 11 Nov 2011, 06:46 AM
Solved.

had to change the code to :
editor.DocumentManager.SearchPatterns = new string[] { "*.doc", "*.txt", "*.docx", "*.xls", "*.xlsx", "*.pdf", "*.jpg", "*.jpeg", "*.eps" };
Tags
Editor
Asked by
Somya
Top achievements
Rank 1
Answers by
Somya
Top achievements
Rank 1
Share this question
or