Editor Document Manager set the file extensions allowed

2 posts, 0 answers
  1. Somya
    Somya avatar
    2 posts
    Member since:
    Nov 2011

    Posted 10 Nov 2011 Link to this post

    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!
  2. Somya
    Somya avatar
    2 posts
    Member since:
    Nov 2011

    Posted 11 Nov 2011 Link to this post

    Solved.

    had to change the code to :
    editor.DocumentManager.SearchPatterns = new string[] { "*.doc", "*.txt", "*.docx", "*.xls", "*.xlsx", "*.pdf", "*.jpg", "*.jpeg", "*.eps" };
Back to Top