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

Editor Image/Document/etc manager

3 Answers 61 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Andrei
Top achievements
Rank 1
Andrei asked on 19 Mar 2012, 11:36 AM
Hello telerik,

I use his code on IIS 7

<telerik:RadEditor ToolsFile="~/Admin/FEHTools.xml" Height="355px" Width="433px"
                                                                                                                            ContentFilters="RemoveScripts" CssClass="EditorCss" EnableResize="false" ID="radEditorWpContent"
                                                                                                                            runat="server">
                                                                                                                            <imagemanager viewpaths="~/editor/Images/" uploadpaths="~/editor/Images/"
                                                                                                                                deletepaths="~/editor/Images/" maxuploadfilesize="100000000" searchpatterns="*.*"
                                                                                                                                enableimageeditor="true" />
                                                                                                                            <flashmanager viewpaths="~/editor/flash/" uploadpaths="~/editor/flash/"
                                                                                                                                deletepaths="~/editor/flash/" maxuploadfilesize="100000000" />
                                                                                                                            <mediamanager viewpaths="~/editor/media/" uploadpaths="~/editor/media/"
                                                                                                                                deletepaths="~/editor/media/" maxuploadfilesize="100000000" searchpatterns="*.*" />
                                                                                                                            <documentmanager viewpaths="~/editor/documents/" uploadpaths="~/editor/documents/"
                                                                                                                                deletepaths="~/editor/documents/" maxuploadfilesize="100000000" searchpatterns="*.*" />
                                                                                                                            <cssfiles>
                                                                                                                                <telerik:EditorCssFile Value="~/CSS/RadEditor2.css" />
                                                                                                                            </cssfiles>
                                                                                                                        </telerik:RadEditor>

in a aspx file under a folder with this webconfig

<system.web>
  <authorization>
    <allow roles="admin"></allow>
    <deny users="?"/>
  </authorization>
</system.web>
<system.webServer>
  <security>
    <requestFiltering>
      <requestLimits maxUrl="8192" maxQueryString="4096" />
    </requestFiltering>
  </security>
</system.webServer>

Problem is: when i click on any of image/document/... manager to upload an image, then
it redirects the iframe containing the manager to the login page.
Before that it IIS complained that the request url is too big, which you can see i have increased.

WHY does it redirect?


3 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 21 Mar 2012, 04:48 PM
Hello,

Put the following in your web.config file:

<location path="Telerik.Web.UI.DialogHandler.aspx">
  <system.web>
   <authorization>
    <allow roles="*"/>
  </authorization>
</system.web>
</location>
<location path="Telerik.Web.UI.SpellCheckHandler.axd">
  <system.web>
    <authorization>
      <allow roles="*"/>
    </authorization>
  </system.web>
</location>

You can also reduce the size of the RadEditor's dialog urls using the following code:

<script type="text/javascript">
function setUrlLength(editor)
{
    editor.get_dialogOpener()._dialogUrlLengthLimit = 500;
}
</script>
<telerik:RadEditor ID="RadEditor1" runat="Server" OnClientLoad="setUrlLength" />


Kind regards,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Andrei
Top achievements
Rank 1
answered on 29 Mar 2012, 10:39 AM
Hello guys,

I didn't help.

I solved the request limit problem as mentioned. But the imagemanager is still
redirected to login page specified by

   <authentication mode="Forms" >
      <forms loginUrl="Access.aspx" defaultUrl="~\Admin\SideEdit.aspx"></forms>
    </authentication>

Thanks for help!
0
Rumen
Telerik team
answered on 02 Apr 2012, 01:52 PM
Hello,

Try the following
  1. set the RadEditor's DialogHandlerUrl property to "~/Telerik.Web.UI.DialogHandler.axd"
  2. open the web.config file and replace Telerik.Web.UI.DialogHandler.aspx with Telerik.Web.UI.DialogHandler.axd
  3. Also put in the web.config
<location path="Telerik.Web.UI.DialogHandler.axd">
  <system.web>
   <authorization>
    <allow roles="*"/>
  </authorization>
</system.web>
</location>

BTW do you experience the problem with the SpellChecker?

Greetings,
Rumen
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Editor
Asked by
Andrei
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Andrei
Top achievements
Rank 1
Share this question
or