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

RadUpload upload images from local machine

1 Answer 52 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 07 May 2010, 11:29 AM
Hi,
  I'm using the RadEditor control to allow users to create emails on our website. The website is posted on a webserver, however I want the users to be able to upload images from their own pc's is this possible to do.

My settings are
  <telerik:RadEditor ID="RadEditor1" runat="server">
                <ImageManager UploadPaths="~\images" ViewPaths="~\images" />
                <Content>
</Content>
            </telerik:RadEditor>


Regards

Robert Smith

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 12 May 2010, 08:54 AM
Hi Robert,

You should correct the paths inside the ImageManager tag by replacing the backslash \ symbols with slash / symbols, e.g.

<telerik:RadEditor ID="RadEditor1" runat="server">
                <ImageManager UploadPaths="~/images" ViewPaths="~/images" />
  </telerik:RadEditor>

After that create a folder in the root of the web site named images. When you do this your users will be able to upload images in the Images folder on your server through the Image manager's Upload dialog.

You can test the upload feature online in this live demo: File Managers.

Please, note that it is not possible to automatically upload images pasted from local hard disk in the content area in RadEditor, because JavaScript does not have access to the local file system of the clients machine. That is why the end user should upload firstly the image via the Image manager and after that he / she will be able to insert it in RadEditor.


Kind 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.
Tags
Editor
Asked by
Mark
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or