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

RadEditor with ImageManager or DocumentManager

8 Answers 63 Views
AJAX and Web 2.0
This is a migrated thread and some comments may be shown as answers.
Dayana Maliyakal
Top achievements
Rank 1
Dayana Maliyakal asked on 13 Oct 2010, 10:19 AM

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?

8 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 Oct 2010, 10:39 AM
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.
0
Dayana Maliyakal
Top achievements
Rank 1
answered on 13 Oct 2010, 11:17 AM
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.
0
Rumen
Telerik team
answered on 13 Oct 2010, 12:22 PM
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
0
Dayana Maliyakal
Top achievements
Rank 1
answered on 14 Oct 2010, 05:34 AM
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?
0
Fiko
Telerik team
answered on 18 Oct 2010, 09:35 AM
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
0
Vazqusa
Top achievements
Rank 1
answered on 27 Aug 2013, 04:28 PM
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,
0
Vazqusa
Top achievements
Rank 1
answered on 27 Aug 2013, 05:19 PM
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){
....
}

0
Vessy
Telerik team
answered on 29 Aug 2013, 02:47 PM
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.
Tags
AJAX and Web 2.0
Asked by
Dayana Maliyakal
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Dayana Maliyakal
Top achievements
Rank 1
Fiko
Telerik team
Vazqusa
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or