must specify AllowedFileExtensions

Last post 02-17-2010, 12:44 PM by Eric. 1 replies.
Sort Posts: Previous Next
  •  02-17-2010, 12:15 PM 58759

    must specify AllowedFileExtensions

    Can someone please tell me where to specify allowed file extensions? Testing with trial. Thank you.
    Filed under:
  •  02-17-2010, 12:44 PM 58760 in reply to 58759

    Re: must specify AllowedFileExtensions

    Dear siwelis,
     
    The following is a full example, please refer to it:
     
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
     <title>File Upload using UploadUrl</title>
     <link href="demo.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
     <div class="demo">
            <h2>File Upload with Custom handler</h2>
      <p>A sample demonstrates how to implement a custom upload handler then accepts the incoming files. In handler page (UploadUrl) developers can rename the uploaded files, process other logics programmatically. </p>
      <ul>
       <li>Allowed file types is set to: *.jpg,*.png,*.gif,*.bmp</li>
      </ul>
      <?php
       $uploader=new PhpUploader();
       $uploader->MultipleFilesUpload=true;
       $uploader->InsertText="Select multiple files (Max 10M)";   
       $uploader->MaxSizeKB=10240;
       $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp";   
       $uploader->UploadUrl="demo2_upload.php";   
       $uploader->Render();
      ?>
     </div>
    </body>
    </html>
     
     
     
    Regards,
    Eric
View as RSS news feed in XML