JavaScript message "Unknown error..!" when using UploadType=Auto and neither flash or silverlight installed

Last post 06-03-2011, 12:43 PM by rmacfadyen. 1 replies.
Sort Posts: Previous Next
  •  06-01-2011, 4:26 PM 67770

    JavaScript message "Unknown error..!" when using UploadType=Auto and neither flash or silverlight installed

    Hi,
     
    For C# ASP.NET 2.0, using IE8/IE9 if flash or silverlight is not installed the upload fails with a javascript message "Unknown error..!".
     
    Here's the control definition:
    <CuteWebUI:UploadAttachments runat="server" ID="AttachedFiles" 
        InsertText="Browse..." 
        AutoUseSystemTempFolder="true" 
        ShowCheckBoxes="true" 
        ShowActionButtons="false" 
        ShowRemoveButtons="false" 
        CancelUploadMsg="Upload cancelled"
        InsertButtonStyle-CssClass="stdButton"
        ShowFileIcons="false"
        UploadType="Auto"
        NumFilesShowCancelAll="999"
        CancelText="Cancel Current Upload"
        OnUploadCompleted="AttachedFiles_UploadCompleted"
    >
     
    I am also using a custom upload provider:
      <add key="CuteWebUI.AjaxUploader.UseAspNetStream" value="True"/>
    <add key="CuteWebUI.AjaxUploader.Provider" value="xxx.UploaderSqlServerProvider,xxx"/>
     
    The upload provider is based on the code provide in post http://cutesoft.net/forums/permalink/48294/48280/ShowThread.aspx#48280 
     
    Walking through the upload provider I can the file being delivered and stored in the database correctly .
     
    I'm using version 3.0.0.0, file description:  AjaxUploader 3.0 20110321
     
    Suggestions? Is there any other information I can provide?
     
    Rob 
     
     
     
     
  •  06-03-2011, 12:43 PM 67799 in reply to 67770

    Re: JavaScript message "Unknown error..!" when using UploadType=Auto and neither flash or silverlight installed

    Eventually tracked this down to the response header "X-FRAME-OPTIONS" being set to "DENY". Setting the header to "SAMEORIGIN" resolves the problem.
View as RSS news feed in XML