Re: RE: Problem: When using SaveDirectory property, you must specify AllowedFileExtensions for security purpose.

  •  01-14-2010, 12:45 AM

    Re: RE: Problem: When using SaveDirectory property, you must specify AllowedFileExtensions for security purpose.

    Eric:
    Dear disler,
     
    Open http://www.davidisler.ch/_temp/phpuploader/ with IE, at left-bottom corner, you can find javascript error. please post your code here.
     
    Regards,
    Eric
     
    Hi Eric

    My IE doesn't show me any JS-Error.
     
    <?php

    //error_reproting(E_ALL | E_STRICT);

    require_once "phpuploader/include_phpuploader.php";



    ?>   
    <html>   
     <body>   
             <form id="form1" method="POST" ENCTYPE = "multipart/form-data"> <?php
                      $uploader=new PhpUploader();     
    $uploader->Name="myuploader";
                     $uploader->SaveDirectory="savefiles";    
                       $uploader->AllowedFileExtensions="jpeg,jpg,gif,png,zip";
                    $uploader->Render();   

                 ?>   
             </form>   
     </body>   
    </html>
    Regards, disler
View Complete Thread