Unable to find file de604f2a-e96f-c0bc-3cda-56ac3ce1b27b in /tmp/uploadertemp

Last post 07-26-2012, 9:00 AM by Kenneth. 2 replies.
Sort Posts: Previous Next
  •  07-25-2012, 8:30 AM 74242

    Unable to find file de604f2a-e96f-c0bc-3cda-56ac3ce1b27b in /tmp/uploadertemp

    I have created a form to upload a file with the manual start option set to true.
     
    When I click the button to call the doStart() function, I see the progress bar increase to 100%
     
    I then get an alert with the following error:
     
    Unable to find file de604f2a-e96f-c0bc-3cda-56ac3ce1b27b in /tmp/uploadertemp
     
    Any idea what could be wrong here?
     
    Note:
     
    When I test the form-simple-upload.php on my server, it works correctly and the file reports it is uploaded successfully though no file has uploaded to my server.
     
    When I test with the form-manualstart.php demo file, I get the same "Unable to find file" error.
     
    Is this error due to me not having purchased a license yet? I was testing it was going to work for my needs before doing so. 
     
    Just in case this is any help, here are the relevant settings from phpinfo();
     
    upload_tmp_dir /tmp /tmp
    file_uploads On On
    upload_max_filesize 100M 100M
    post_max_size 100M 100M
    max_input_time 6000 6000
    memory_limit 128M 128M
    max_execution_time 60 60
     
     
     I read in another post relating to what appears a similar issue a fix that involved adding the following:
     
    $uploader->TempDirectory="tempdir";
     
    I created this folder and gave it permissions 777 
     
    When I tested again  I got the following error
     
     
     
  •  07-25-2012, 9:28 AM 74247 in reply to 74242

    Re: Unable to find file de604f2a-e96f-c0bc-3cda-56ac3ce1b27b in /tmp/uploadertemp

    In an attempt to try and identify the issue, I have tested a very simple upload script as follows consisting of 2 files.
     
    [myUploader.htm] 
    <html>
    <body>
    <form action="upload_file.php" method="post"
    enctype="multipart/form-data">
    <label for="file">Filename:</label>
    <input type="file" name="file" id="file" /> 
    <br />
    <input type="submit" name="submit" value="Submit" />
    </form>
    </body>
    </html>
     
     
     
    [upload_file.php ] 
     
    <?php
    if ($_FILES["file"]["error"] > 0)
      {
      echo "Error: " . $_FILES["file"]["error"] . "<br />";
      }
    else
      {
      echo "Upload: " . $_FILES["file"]["name"] . "<br />";
      echo "Type: " . $_FILES["file"]["type"] . "<br />";
      echo "Size: " . ($_FILES["file"]["size"] / 1024) . " Kb<br />";
      echo "Stored in: " . $_FILES["file"]["tmp_name"];
    if (file_exists("uploads/" . $_FILES["file"]["name"]))
          {
          echo $_FILES["file"]["name"] . " already exists. ";
          }
        else
          {
          move_uploaded_file($_FILES["file"]["tmp_name"],
          "uploads/" . $_FILES["file"]["name"]);
          echo "Stored in: " . "uploads/" . $_FILES["file"]["name"];
          }
      }
    ?>
     
     
    This worked fine and uploaded the file titled "candles.jpg" to the "uploads" directory and displayed the following trace data
     
    Upload: candles.jpg
    Type: image/jpeg
    Size: 264.78515625 Kb
    Stored in: /tmp/php0vEAJlStored in: uploads/candles.jpg  
     
    One other thing to note which may or may not be relevant. I am testing on a server that is Load Balanced Shared Web Hosting.


     
     
  •  07-26-2012, 9:00 AM 74269 in reply to 74247

    Re: Unable to find file de604f2a-e96f-c0bc-3cda-56ac3ce1b27b in /tmp/uploadertemp

    Hi mediakitchen,
     
    In web farm environments, the TempDirectory that you specify must map to a central location, which is saved to by all servers in the farm. This can be done using a virtual directory that maps to a common shared folder on the network.  
     
    What I mean the TempDirectory setting is
     
    $uploader->TempDirectory="/temp";
     
    Regards,
     
    Ken 
View as RSS news feed in XML