Re: Uploader Error in Safari for Windows

  •  10-30-2012, 4:40 PM

    Re: Uploader Error in Safari for Windows

    Hi raynovak,

     

    For now the html5 mode not work very well on safari. Please try the example page below, it will switch to flash upload mode for safari browser. Hope it help.

     

    1. <%@ Page Language="C#" Title="Customize the queue UI" %>  
    2.   
    3. <%@ Register TagPrefix="CuteWebUI" Namespace="CuteWebUI" Assembly="CuteWebUI.AjaxUploader" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7. </head>  
    8. <script runat="server">  
    9.     protected override void OnLoad(EventArgs e)  
    10.     {  
    11.         if (Request.UserAgent.ToLower().IndexOf("safari") != -1)  
    12.         {  
    13.             uploader1.UploadTypePriority = "Flash,HTML5,Silverlight";  
    14.         }  
    15.         else  
    16.         {  
    17.             uploader1.UploadTypePriority = "Html5,Flash,Siverlight";  
    18.         }  
    19.         base.OnLoad(e);  
    20.     }  
    21. </script>  
    22. <body>  
    23.     <form id="Form1" runat="server">  
    24.     <div>  
    25.         <CuteWebUI:UploadAttachments runat="server" ID="uploader1">  
    26.         </CuteWebUI:UploadAttachments>  
    27.     </div>  
    28.     </form>  
    29. </body>  
    30. </html>  
     

    Regards,

     

    Ken 

View Complete Thread