Cannot set DocumentFilters

Last post 09-21-2009, 11:33 AM by Adam. 1 replies.
Sort Posts: Previous Next
  •  09-21-2009, 5:55 AM 55761

    Cannot set DocumentFilters

    I want to upload Excel files, but the files dialog says that this (.xls) format is no allowed.

    I use this statement when creating the object:
     
    $editor->DocumentFilters = ".pdf,.zip,.doc,.xls";

    I am working on local computer.


    How I can fix this issue ?
    --
    http://www.Sitio123.com
    http://marketing.mexired.com
  •  09-21-2009, 11:33 AM 55776 in reply to 55761

    Re: Cannot set DocumentFilters

    Please try this example:
     
     
    It works ok for me.
     
    1. <?php include_once("CuteEditor_Files/include_CuteEditor.php") ; ?>   
    2. <html>       
    3.     <head>   
    4.     </head>   
    5.      <body>   
    6.     <form name="theForm" action="/Get_HtmlContent.php" method="post">   
    7.         <div align="center">   
    8.           
    9.           <?php   
    10.                 $editor=new CuteEditor();   
    11.                 $editor->ID="Editor1";   
    12.                 $editor->Text="Hello World";   
    13.                    
    14.                         $editor->DocumentFilters = ".pdf,.zip,.doc,.xls";   
    15.                 $editor->Draw();   
    16.                 $editor=null;   
    17.                    
    18.                 //use $_POST["Editor1"]to catch the data    
    19.             ?>   
    20.         </div>   
    21.         </form>   
    22.     </body>   
    23. </html>  

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML