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

Issue with upload files with older version of RadEditor

2 Answers 46 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Chris
Top achievements
Rank 1
Chris asked on 11 May 2010, 01:10 AM
I am working with an older version of RadEditor from RadControls Q1 2008.  Unfortunately for this product upgrading is not an option right now as the upgrade itself will necessitate a lot of work for the skinning team that is not practical.  It has a bug where the user can potentially upload files with "%" characters which will break scripts on the page and break the functionality of the editor control.

What we have done initially is skin the upload part of the editor dialogs to show a message.  Unfortunately there is another part of the application where we use the dialog without the editor and I cannot change this skin.  So far I have been following the suggestions outlined here and using the ascx files from our other custom skin, but to no avail.

http://www.telerik.com/community/forums/aspnet-ajax/editor/imagemanager-standalone-customization.aspx


Ideally, there would be a simple way for me to just block the upload.  I attempted unsuccessfully to use some fairly creative Javascript with this, but it proved to difficult to determine when the dialog was loaded and respond to it, not to mention all the iframes that had to be dealt with.

Any suggestions would be very much apprecaited, again considering that upgrading isn't really an option at the present time.

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 13 May 2010, 12:25 PM
Hi Chris,

What you can do is to implement a FileSystemContentProvider and strip the % symbols by overriding the StoreFile method. The following KB article will show you how to rename the uploaded images:
Giving the uploaded files unique names.

I hope this helps.

Best 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.
0
Chris
Top achievements
Rank 1
answered on 13 May 2010, 06:43 PM
Works like a charm!  You sir, are a lifesaver!
Tags
Editor
Asked by
Chris
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Chris
Top achievements
Rank 1
Share this question
or