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

upload to external url

1 Answer 77 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 14 Sep 2008, 04:06 PM
Hi,
I don't think the editor can do this but I have to ask!
Is it possible to upload an image to external url? And of course get uploaded images from the same url.

I explain why:
We have a number of customers that admin their website through an interface on our website.
They log in to a customer area on our website and can then do stuff with their site, like upload images and documents.
And when they uploads an image our current editor (XStandard) uses a webservice and uploads the image to the customers websites image directory.
After that when the customer wants to add an image to a page he browse (just like your editor) but the browser gets the images through the webservice from the customers website.

This is a fantastic feature they have and we cannot change the editor to yours until this can be done.

So:
Is this possible to make through what you call "modules" in the editor or in a another way?

If not, you should really look at XStandards editor which I rank the best editor  available and maybe you can implement it in a future version! :)
http://www.xstandard.com
 

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 15 Sep 2008, 07:02 AM
Hi Mattias,

Please, note that XStandard is actually an ActiveX control, which is using an entirely different technology in comparison to the Web DHTML editors. Unfortunately both editors use different technologies and we cannot compare them due to the limitations of the browsers and the Web.

Nevertheless, you can see the following KB article which could be helpful for your scenario: Uploading images and files to a Shared Drive.

Another approach is to implement your custom file system content provider that will be able to read the files for physical resources or virtual folders outside of the web application. You need to override the StoreFile function:

protected void Page_Load(object sender, EventArgs e)
    {
        RadEditor1.ImageManager.ContentProviderTypeName = typeof(myprovider).AssemblyQualifiedName;
    }

    public class myprovider : Telerik.Web.UI.Widgets.FileSystemContentProvider
    {  
      
        public  myprovider(HttpContext context, string[] searchPatterns, string[] viewPaths, string[] uploadPaths, string[] deletePaths, string selectedUrl, string selectedItemTag)
        : base(context, searchPatterns, viewPaths, uploadPaths, deletePaths, selectedUrl, selectedItemTag)
        {
        }

        public override string StoreFile(UploadedFile file, string path, string name, params string[] arguments)
        {
            //code
            return base.StoreFile(file, path, name, arguments);
        }
    }

Best regards,
Rumen
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Editor
Asked by
Mattias
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or