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

[Solved] Editor and Blob Storage in the Azure Cloud

1 Answer 39 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tony
Top achievements
Rank 1
Tony asked on 30 Aug 2011, 01:51 AM
Hi there,

Looking at the Editor and namely the ability to upload to the cloud.  Here is some code:-

public class ImageBrowserController : EditorFileBrowserController
{
    public override string[] ContentPaths
    {
        get
        {
            return new[] { "Some area of the cloud here" };
        }
    }

I would like to define the Content Path in the View or some other way as it points to a dynamically created Container, I'd like to do this without the overhead of building a Database Table and storing information.

Is there any way of doing this?  Such as with a EditorBuilder (which does not exist yet)

Thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Atanas Korchev
Telerik team
answered on 30 Aug 2011, 08:46 AM
Hi Tony,

Setting the ContentPaths would work only if you are using the server file system for storing the images. For Azure storage you need to implement a custom IImageBrowserController. We have a code library project showing how to do the same for images stored in a database. Perhaps this project would help you to implement Azure blob storage.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Editor
Asked by
Tony
Top achievements
Rank 1
Answers by
Atanas Korchev
Telerik team
Share this question
or