RadEditor with ImageManager or DocumentManager

9 posts, 0 answers
  1. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 13 Oct 2010 Link to this post

    Hi
        RadEditor

     

    with ImageManager or DocumentManager can save image files or documents within the application only .Is there any
        method for saving the above files outside the appliation?

  2. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 13 Oct 2010 Link to this post

    Hello Dayana,

    What you can do is to implement a FileSystemContentProvider and save the uploaded file at the desired location by overriding the StoreFile method. The following KB article shows you how to rename the uploaded images: Giving the uploaded files unique names. You can use it as a base to proceed with your implementation.

    Kind regards,
    Rumen
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 13 Oct 2010 Link to this post

    Thanks for your reply.
         I can't save the file in desired location using the above sample application.My application is in C:\Test location.I want to save the files in C:\Documents and Settings\images.
  4. Rumen
    Admin
    Rumen avatar
    12846 posts

    Posted 13 Oct 2010 Link to this post

    Hello Dayana,

    In your first post you asked for a method that will help you to store the uploaded file to the desired location. This method is named StoreFile and it is part of the FileSystemContentProvider class that you should implement yourself.

    Another useful help resource is this article: Use RadFileExplorer with physical and shared folder's paths.

    Regards,
    Rumen
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  5. Dayana Maliyakal
    Dayana Maliyakal avatar
    27 posts
    Member since:
    Jan 2010

    Posted 14 Oct 2010 Link to this post

    Hi
      Thanks for your reply.Instead of RadFileExplorer can we use RadEditor itself with ImageManager and DocumentManager with save files in location like C:\Documents and Settings\images if my application is in a different location like C:\Test?
  6. Fiko
    Admin
    Fiko avatar
    1406 posts

    Posted 18 Oct 2010 Link to this post

    Hi Dayana,

    The Editor dialogs are based on the RadFileExplorer control, so you can use the FileBrowserContentProvider provided in this KB article with the dialogs as well. You need to follow the steps shown in this online demo in order to change the provider of the ImageManager dialog(the same is for other dialogs).

    As an alternative, you could use the approach described in this KB article.

    I hope this helps.

    Kind regards,
    Fiko
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  7. Vazqusa
    Vazqusa avatar
    4 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    Hi All,

    Right now i'm using the ImageManager with the RadEditor, but i'm having an issue with the imageManager to display the preview of the image, this is happening just with the images that contains special characters in the name like "%, &, $..", is there any solution for this ?

    Thanks,
  8. Vazqusa
    Vazqusa avatar
    4 posts
    Member since:
    Aug 2013

    Posted 27 Aug 2013 Link to this post

    I actually try using the method below to try catch the image that contains some special characters and rename the file with a new name, but the problem still there, any update on this ?

    public override DirectoryItem ResolveDirectory(string path){
    ....
    }

  9. Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 29 Aug 2013 Link to this post

    Hi Vazqusa,

    I have just answered your other forum thread on the subject - please, refer it here.

    Regards,
    Veselina Raykova
    Telerik
    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 the blog feed now.
Back to Top