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

[Solved] Upload Image and Documents not working on Mac / Firefox only

2 Answers 99 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Christina Blenk
Top achievements
Rank 1
Christina Blenk asked on 05 Jan 2010, 11:15 PM
We have a client on Mac using firefox 3.5.5 that can access the editor, click on Document Manager (or Image Manager) and then Upload.  When they click on "Browse" nothing happens.  We have tested this on a VNC client and confirmed the action does not work for this Mac / Firefox combo.  This works fine on PC's.

Is there something specific that we need to enable to make this work for Mac's?  We tested your demo Editor on the VNC with Mac / Firefox and browse worked - so it must be a setting that we just dont have right.

We are using your ASP.NET - AJAX version of the editor, farily recent version, too.

thanks!

- Christina

2 Answers, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 06 Jan 2010, 08:33 AM
Hi Christina,

I am aware of this problem and it should be fixed in the latest official Q3 SP1 2009 build.

If you still experience the problem with the latest build you can disable the RadUpload's skinning which will solve the problem. To do that follow the steps below:

1) Register the external dialog files of RadEditor:
   - Copy the EditorDialogs installation folder to the root of the web project
   - Set the ExternalDialogsPath= "~/EditorDialogs/";  property, e.g.

 
<telerik:radeditor runat="server" ExternalDialogsPath="~/EditorDialogs" ID="RadEditor1"> 
    <ImageManager ViewPaths="~/" UploadPaths="~/" /> 
</telerik:radeditor> 


2) Create a UserControl in the root of your web application for example named UserControl.ascx and put the following code in it:

<%@ Control Language="C#" AutoEventWireup="true" CodeFile="UserControl.ascx.cs" Inherits="UserControl" %> 
<script runat="server" type="text/C#">  
  
    protected void Page_Load(object sender, System.EventArgs args)  
    {  
        Telerik.Web.UI.RadFileExplorer rfe = (Telerik.Web.UI.RadFileExplorer)this.FindRadControl(this.Page);  
        if (rfe != null)  
        { 
           rfe.Upload.EnableFileInputSkinning = false;
        }  
    }  
  
    
  
    private Control FindRadControl(Control parent)  
    {  
        foreach (Control c in parent.Controls)  
        { 
             
            if (c is Telerik.Web.UI.RadFileExplorer) return c;  
            if (c.Controls.Count > 0)  
            {  
                Control sub = FindRadControl(c);  
                if (sub != null) return sub;  
            }  
        }  
        return null;  
    }  
  
</script>  

3) Register the custom control in the \EditorDialogs\FileBrowser.ascx external dialog control:
<%@ Register TagPrefix="custom" TagName="customControl" Src="~/UserControl.ascx"  %>
<custom:customControl ID="customControl1" runat="server" />



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.
0
Christina Blenk
Top achievements
Rank 1
answered on 06 Jan 2010, 04:42 PM
Great fix, thanks!
Tags
Editor
Asked by
Christina Blenk
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Christina Blenk
Top achievements
Rank 1
Share this question
or