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

Last post 01-16-2012, 6:32 AM by Kenneth. 5 replies.
Sort Posts: Previous Next
  •  01-10-2012, 3:47 AM 72582

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

    I have copied the demo files across to our website and no matter what changes i make i receive the exact same error.
     
    I have tried to set the TempDirectory to  C:\Temp to C:\Inetpub\wwwroot\fileUpload\tmp but to no avail.
     
    All permissions are set correctly as i have a simple upload routine going to the C:\Inetpub\fileUpload folder.
     
    Any help would be appreciated.
     
    Running IIS  6.0 with PHP 5.1 in Windows 2003 server
  •  01-10-2012, 7:28 AM 72588 in reply to 72582

    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 
  •  01-10-2012, 2:12 PM 72595 in reply to 72588

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

    As i mentioned in my post i did not make any changes and copied the demo files across directly. No changes and i get the error.
     
    I created a brand new file copied what you suggested and the same problem
     
    Tony
  •  01-11-2012, 5:45 AM 72622 in reply to 72595

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

    Hi TonyIS,
     
    Can you set up ftp access for us? So we can check it for you directly.
     
    Please send the info to [email protected]
     
    Regards,
     
    Ken 
  •  01-15-2012, 2:54 PM 72698 in reply to 72622

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

    Unfortunately we don't have FTP access on that machine. As mentioned i did  not make any changes to the files. I just copied them across directly. Is there a particular setting that needs to be changed. Have you testing this on Windows Server 2003?
  •  01-16-2012, 6:32 AM 72707 in reply to 72698

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

    Hi TonyIS,
     
    Yes, I have tested on my win2003, it works fine for me.
     
    Try set the TempDirectory for the uploader control. Create a new folder under your site and set the full path for property "TempDirectory"
     
    $uploader->TempDirectory="D:/2005/phpuploader/test/"; 
     
    Regards,
     
    Ken
View as RSS news feed in XML