Re: Error With Demo files (1) tmp_name is not exists C:\Windows\Temp\php8.tmp

  •  01-10-2012, 7:28 AM

    Re: Error With Demo files (1) tmp_name is not exists C:\Windows\Temp\php8.tmp

    Hi TonyIS,
     
    Please try the example below, does it work for you?
     
    <?php require_once "phpuploader/include_phpuploader.php" ?>
    <?php session_start(); ?>
    <!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>Demo 1 - use SaveDirectory property</title>
    </head>
    <body>
    <div>
    <?php
    $uploader=new PhpUploader();
    $uploader->MultipleFilesUpload=true;
    $uploader->InsertText="Select multiple files (Max 1000M)";
    $uploader->MaxSizeKB=1024000;
    $uploader->AllowedFileExtensions="*.jpg,*.png,*.gif,*.bmp,*.txt,*.zip,*.rar";
    $uploader->Render();
    ?>
    </div>
    </body>
    </html>
     
    For the windows system, you can set the TempDirectory like below
     
    $uploader->TempDirectory="D:/sites/phpuploader/temp/"; 
     
    Regards,
     
    Ken 
View Complete Thread