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

Upload/download shortcut files via RadEditor

1 Answer 217 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Giereck
Top achievements
Rank 1
Giereck asked on 18 Nov 2009, 11:00 AM
Hello,

Im in a situation where I need to upload an Outlook Exchange shortcut file (.xnk) via the RadEditor. The Editor inserts the link, but when I click the link I get a page-not-found.
I tried uploading a normal Windows shortcut-file (.lnk) and I realized that the Editor actually uploaded the exe which the shortcut was pointing to, not the shortcut-file itself. This means that when the link is clicked, the exe is downloaded, not the shortcut. I get the exact same page-not-found if I manually copy the Windows shortcut file into the editors upload folder and then create a link to it via the editor. 

However, when I upload the xnk-file, the shortcut itself is uploaded, and i guess that is the problem.

Does anyone have any ideas of how to fix this?

/Giereck

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 20 Nov 2009, 04:26 PM
Hi Giereck,

The links in the RadEditor's content area should not be clickable. Are you clicking this link in Preview mode by any chance? If this is your case then please disable the link clicking using the solution provided in the following forum thread: Have links in Preview mode open in new window. You should change a bit the code to set href="#" to the links in Preview mode and restore their original links in Design mode.

Please, also note that the upload functionality in the editor dialogs is based on the standard <input type="file"> element and it is the browser and the OS which decide whether to upload the file or its shortcut. The editor does not control and cannot control this process. You will experience the same problem with a standard file input control.

Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
Giereck
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or