Live Support, Chat, Upload Control and Rich Text Editor
Welcome to Support forums Sign in | Join | Help |Client Center
in Search

Random error(File dialog has been blocked) while trying to Upload files

Last post 09-11-2009, 12:57 PM by luci. 21 replies.
Page 1 of 2 (22 items)   1 2 Next >
Sort Posts: Previous Next
  •  08-27-2009, 8:18 AM 55101

    Random error(File dialog has been blocked) while trying to Upload files

    Hello,
     
    I m getting following error at random when i am trying to upoad the file .
     
    Thanks
    Shaitender singh
     
  •  08-27-2009, 10:34 AM 55108 in reply to 55101

    Re: Random error(File dialog has been blocked) while trying to Upload files

    Hi,
     
    Please add this code to check the reason :
     
     <script type="text/javascript">
     function CuteWebUI_AjaxUploader_OnMantleButton(btn,div)
     {
      div.style.backgroundColor="red";
      div.style.filter="";
     }
     </script>
     
    Regards,
    Terry
     
  •  08-27-2009, 2:01 PM 55121 in reply to 55108

    Re: Random error(File dialog has been blocked) while trying to Upload files

    It does not show anything, other than an empty red box.
  •  08-27-2009, 2:49 PM 55122 in reply to 55108

    Re: (File dialog has been blocked) while trying to Upload files

    This is still happening for me.File dialog has been blocked.
  •  08-27-2009, 8:06 PM 55125 in reply to 55121

    Re: Random error(File dialog has been blocked) while trying to Upload files

    Hi,
     
    Uploader use a transparent layer to put the Flash/Silverlight object over the button.
     
    So, when use this code, you should see the red box over the button.
     
    If the position is not correct , you will get that problem.
     
    You can continue write code on that function to adjust the postion.
     
    Regards,
    Terry
  •  08-28-2009, 11:01 AM 55152 in reply to 55125

    Re: Random error(File dialog has been blocked) while trying to Upload files

    How do we fix this????
  •  08-28-2009, 4:31 PM 55156 in reply to 55152

    (File dialog has been blocked) while trying to Upload files

    I thought this problem had been fixed during the last release. I tried to adjust the div without success. It does not work inside a tabcontainer or ajax modalpopup.
    Please help.
  •  08-28-2009, 9:00 PM 55161 in reply to 55156

    Re: (File dialog has been blocked) while trying to Upload files

    Hi,
     
    We will investigating on the tabcontainer and modalpopup and will get back to you ASAP
     
    Regards,
    Terry
  •  08-31-2009, 9:29 AM 55207 in reply to 55161

    Re: (File dialog has been blocked) while trying to Upload files

    Thank you. I have users calling about this for a while.
  •  09-01-2009, 3:12 AM 55227 in reply to 55207

    Re: (File dialog has been blocked) while trying to Upload files

    Hi,
    We have tested it and currently do not find problems.
     
    Here is the code we tested:
    1. <%@ Page Language="C#" AutoEventWireup="false" %>  
    2.   
    3. <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>  
    4. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
    5. <html xmlns="http://www.w3.org/1999/xhtml">  
    6. <head id="Head1" runat="server">  
    7.     <title></title>  
    8. </head>  
    9. <body>  
    10.     <form id="form1" runat="server">  
    11.        
    12.         <asp:ScriptManager ID="ScriptManager1" runat="Server" />  
    13.            
    14.         <asp:Button runat="server" ID="btnShow" Text="Show ModalPopupExtender" />  
    15.         <asp:Button ID="button1" runat="server" Text="Postback" />  
    16.            
    17.         <hr />  
    18.         <ajaxToolkit:ModalPopupExtender runat="server" ID="MPE" TargetControlID="btnShow"  
    19.             PopupControlID="TabContainer1" />  
    20.                
    21.         <ajaxToolkit:TabContainer ID="TabContainer1" runat="server" Width="400px" Height="320px">  
    22.             <ajaxToolkit:TabPanel ID="Panel1" runat="server" HeaderText="Panel1">  
    23.                 <ContentTemplate>  
    24.                     Click on Panel2 and then on Upload   
    25.                 </ContentTemplate>  
    26.             </ajaxToolkit:TabPanel>  
    27.             <ajaxToolkit:TabPanel ID="Panel2" runat="server" HeaderText="Panel2">  
    28.                 <ContentTemplate>  
    29.                     <hr />  
    30.                     <div contenteditable="TRUE">  
    31.                         CONTENTEDITABLE</div>  
    32.                     <hr />  
    33.                     <CuteWebUI:Uploader runat="server" ID="Uploader1" MultipleFilesUpload="true" InsertText="Upload"  
    34.                         UploadType="Flash">  
    35.                         <ValidateOption MaxSizeKB="10240" />  
    36.                     </CuteWebUI:Uploader>  
    37.                     <hr />  
    38.                     <button onclick="ToggleMask();return false;">Show/Hide Button Mask</button>  
    39.                 </ContentTemplate>  
    40.             </ajaxToolkit:TabPanel>  
    41.         </ajaxToolkit:TabContainer>  
    42.         <br />  
    43.            
    44.     </form>  
    45.   
    46.     <script>  
    47.     var showMask=false;   
    48.     function ToggleMask()   
    49.     {   
    50.         showMask=!showMask;   
    51.     }   
    52.     function CuteWebUI_AjaxUploader_OnMantleButton(button,div)   
    53.     {   
    54.         if(showMask)   
    55.         {   
    56.             //use this line to see the floating flash object   
    57.             div.style.backgroundColor="green";   
    58.             //clear the transparent on IE   
    59.             div.style.filter="";   
    60.         }   
    61.     }   
    62.     </script>  
    63.   
    64. </body>  
    65. </html>  

     

    Can you also post a code which cause the issue ?
     
    Regards,
    Terry
     
  •  09-01-2009, 12:01 PM 55250 in reply to 55227

    Re: (File dialog has been blocked) while trying to Upload files

    Our problem is that we have a scroll bar on the page where the popup is. Try this. Add a html table with height>100% to your code above and test it again. try scrolling the page up and down and test the control.
    Add a table after your form tag:

    <table cellpadding="0" cellspacing="0" style="height: 120%">.... anything here </table>

     

     
  •  09-02-2009, 8:54 AM 55296 in reply to 55250

    Re: (File dialog has been blocked) while trying to Upload files

    Hi,
     
    We also test the scroll condition , and find no problem .
     
    Can you show a complete page code which can cause that issue ?
    (You can make it based on my sample code )
     
    And the browser type ?
     
    Regards,
    Terry
  •  09-02-2009, 1:39 PM 55319 in reply to 55296

    Re: (File dialog has been blocked) while trying to Upload files

    Copy and paste this. Scroll to the very bottom of the page. Click on the button "show modal",and the tabs will appear. Click on the upload button now and you will see the bad block message. We can see that the green mask is right above at the top of the screen. If we scroll up and try again it works.  Let me know if you want screen shots.
    We use IE7. Thanks.
    <%@ Page Language="vb" AutoEventWireup="false" Codebehind="TestBed3.aspx.vb" Inherits="TotalRequest.TestBed3" %>

    <%@ Register Assembly="CuteWebUI.AjaxUploader" Namespace="CuteWebUI" TagPrefix="CuteWebUI" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head id="Head1" runat="server">
        <title>
            <%#Page.Title%>
        </title>
        <link href="http://cutesoft.net/style/appstyle.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
            <table cellpadding="0" cellspacing="0" style="height: 120%">
                <tr>
                    <td align="left" valign="top">
                    </td>
                    <td align="right" valign="top">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="right">
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right; height: 28px;">
                                    some text
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
            <ajax:ScriptManager ID="smMaster" runat="server" AllowCustomErrorsRedirect="True" />
            <asp:Button runat="server" ID="btnShow" Text="Show ModalPopupExtender" />
            <asp:Button ID="button1" runat="server" Text="Postback" />
            <hr />
            <ajaxtoolkit:modalpopupextender runat="server" id="MPE" targetcontrolid="btnShow"
                popupcontrolid="TabContainer1"  />
            <ajaxtoolkit:tabcontainer id="TabContainer1" runat="server" width="400px" height="320px"> 
                <ajaxToolkit:TabPanel ID="Panel3" runat="server" HeaderText="Panel3"> 
                    <ContentTemplate> 
                        Click on Panel2 and then on Upload  
                    </ContentTemplate> 
                </ajaxToolkit:TabPanel> 
                <ajaxToolkit:TabPanel ID="Panel4" runat="server" HeaderText="Panel4"> 
                    <ContentTemplate> 
                        <hr /> 
                        <div contenteditable="TRUE"> 
                            CONTENTEDITABLE</div> 
                        <hr /> 
                        <CuteWebUI:UploadAttachments runat="server" ID="Uploader1" MultipleFilesUpload="true" InsertText="Upload" 
                            UploadType="Flash"> 
                            <ValidateOption MaxSizeKB="10240" /> 
                        </CuteWebUI:UploadAttachments> 
                        <hr /> 
                        <button onclick="ToggleMask();return false;">Show/Hide Button Mask</button> 
                    </ContentTemplate> 
                </ajaxToolkit:TabPanel> 
            </ajaxtoolkit:tabcontainer>
            <br />
            <br />
        </form>
        <script type="text/javascript">
        var showMask=false;  
        function ToggleMask()  
        {  
            showMask=!showMask;  
        } 
         function CuteWebUI_AjaxUploader_OnMantleButton(button,div)  
        {  
            if(showMask)  
            {  
                //use this line to see the floating flash object  
                div.style.backgroundColor="green";  
                //clear the transparent on IE  
                div.style.filter="";  
            }  
        }  

        </script>
    </body>
    </html>

  •  09-02-2009, 9:35 PM 55326 in reply to 55319

    Re: (File dialog has been blocked) while trying to Upload files

    Hi,
     
    We can reproduce this issue now.
     
    We have fixed it , please download the last version !
     
    Regards,
    Terry
  •  09-03-2009, 10:04 AM 55354 in reply to 55326

    Re: (File dialog has been blocked) while trying to Upload files

    Terry,
    Thanks for spending the time trying to fix this. The control is now working inside the modalpopup/tabcontainer(thank you for that), BUT now stopped working on a regular page with a scrollbar(i.e. without the modalpopup or a tabcontainer). This was working fine before the fix.
    To test this issue, just go back to the same code above and add another ajaxuploader right next to the Button1 (Like this):
     <asp:Button ID="button1" runat="server" Text="Postback" />
     <CuteWebUI:UploadAttachments runat="server" ID="Uploader2" MultipleFilesUpload="true" InsertText="Regular Upload" 
                            UploadType="Flash"> 
                            <ValidateOption MaxSizeKB="10240" />  
                       </CuteWebUI:UploadAttachments> 
     
    You can also see that the scroll bar is going crazy. If you try to scroll to the bottom of the page, the page just keeps growing...
    Thanks a lot!!
     
  •  09-04-2009, 8:48 AM 55371 in reply to 55354

    Re: (File dialog has been blocked) while trying to Upload files

    Hi,
     
    Thanks for reporting these bugs.
     
    We have fixed it.
     
    Please try again.
     
    Regards,
    Terry
     
  •  09-04-2009, 10:33 AM 55374 in reply to 55371

    Re: (File dialog has been blocked) while trying to Upload files

    Terry,
    It worked for the test page only. On my real pages it didn't because the controls are not at the same position. You could see that the line and column are "almost" matching (if you put the green mask) but they are not. To test that just add other uploader control(s) to the test page at another position.
    For example, just add this code after the
     </ajaxtoolkit:tabcontainer>
      <br />
     
      <br />
            <table cellpadding="0" cellspacing="0" style="height: 100%">
                <tr>
                    <td align="left" valign="top">
                    </td>
                    <td align="right" valign="top">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="right">
                                    <cutewebui:uploadattachments runat="server" id="Uploader3" multiplefilesupload="true"
                                        inserttext="Upload" uploadtype="Flash"> 
                            <ValidateOption MaxSizeKB="10240" /> 
                        </cutewebui:uploadattachments>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right; height: 28px;">
                                    some text
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
     
    Can you also please test with other cenarios/positions?
    Thanks a lot. 
  •  09-08-2009, 9:40 AM 55443 in reply to 55374

    Re: (File dialog has been blocked) while trying to Upload files

    I am still waiting for a resolution on this post from friday morning. Thanks.
    Terry,
    It worked for the test page only. On my real pages it didn't because the controls are not at the same position. You could see that the line and column are "almost" matching (if you put the green mask) but they are not. To test that just add other uploader control(s) to the test page at another position.
    For example, just add this code after the
     </ajaxtoolkit:tabcontainer>
      <br />
     
      <br />
            <table cellpadding="0" cellspacing="0" style="height: 100%">
                <tr>
                    <td align="left" valign="top">
                    </td>
                    <td align="right" valign="top">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="right">
                                    <cutewebui:uploadattachments runat="server" id="Uploader3" multiplefilesupload="true"
                                        inserttext="Upload" uploadtype="Flash"> 
                            <ValidateOption MaxSizeKB="10240" /> 
                        </cutewebui:uploadattachments>
                                </td>
                            </tr>
                            <tr>
                                <td style="vertical-align: middle; text-align: right; height: 28px;">
                                    some text
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
     
    Can you also please test with other cenarios/positions?
    Thanks a lot. 
  •  09-09-2009, 12:18 PM 55489 in reply to 55443

    Re: (File dialog has been blocked) while trying to Upload files

    Any Update on this???
  •  09-10-2009, 9:37 AM 55534 in reply to 55489

    Re: (File dialog has been blocked) while trying to Upload files

    I have been waiting for a resolution on this for almost a week. Please let me know if you are working on this issue or not. thanks.
Page 1 of 2 (22 items)   1 2 Next >
View as RSS news feed in XML
Powered by ASP.Net
Copyright 2003 - 2017 CuteSoft Components Inc.. All rights reserved.