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

[Solved] Drag image files from windows explorer and drop in the content window

1 Answer 111 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Shiv
Top achievements
Rank 1
Shiv asked on 18 Jun 2009, 09:42 PM
How do we go about dragging image files (.png, .gif etc) from windows explorer and dropping them in the content window?

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 19 Jun 2009, 03:43 PM
Hi Shiv,

The requested scenario is not supported because the src paths of the images dropped in the editor from your Windows Explorer will point to your local drive and they will be not accessible through the web.

It is not possible to access and produce content that contains images referring to your local drive, because the images will only be visible if the html content is accessed from your own computer - and the images will be invisible for any other users accessing the same content from other machines.

In order to use images, they need to be accessible using HTTP protocol - that is, it means they must be uploaded to a web server (which can be your own computer of course, only that the images are provided by the web server software, and not by the operating system).

Unfortunately the automatic upload of images to the server is not possible with javascript code, because Javascript cannot access the local file system from outside - it would be a major security violation.
This requested feature cannot be implemented without using ActiveX or some other software, installed on the client, but we do not use either technique because of browser compatibility and that the ActiveX components are forbidden by the corporate networks.

What we suggest is to upload and insert the Image using the Image Manager dialog and its upload functionality.

Sincerely,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Shiv
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or