Multiple Content Provider Types

2 posts, 0 answers
  1. Cameron
    Cameron avatar
    28 posts
    Member since:
    Oct 2011

    Posted 13 Apr 2012 Link to this post

    Hi,

    This is more a question than it is a request for help.

    I've recently discovered that filenames being uploaded might have non-printable characters in their names.
    As such I've written a FixInvalidFileNameProvider to handle that.
    And so I've got this in my code:

    • radeditor.DocumentManager.ContentProviderTypeName = typeof(FixInvalidFileNameProvider).AssemblyQualifiedName;
    • radeditor.ImageManager.ContentProviderTypeName = typeof(FixInvalidFileNameProvider).AssemblyQualifiedName;

    That's all good and fine.

    However, we were also going to have another provider to handle some other function as this:
    • radeditor.DocumentManager.ContentProviderTypeName = typeof(FileSystemContentProvider).AssemblyQualifiedName;
    • radeditor.ImageManager.ContentProviderTypeName = typeof(FileSystemContentProvider).AssemblyQualifiedName;

    So, is this valid?
    Would the FileSystemContentProvider replace the FixInvalidFileNameProvider?
    Can there be more than one ContentProviderTypeName for the DocumentManager and ImageManager of the RadEditor?

    Thanks,
    Cameron



  2. Rumen
    Admin
    Rumen avatar
    14351 posts

    Posted 18 Apr 2012 Link to this post

    Hi Cameron,

    It is not possible to use two different content providers, but you can move the functionality of the first to the other one.

    Kind regards,
    Rumen
    the Telerik team
    If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Back to Top