Reply to can't get upload to work at all

can't get upload to work at all new!
by Kathy, 11 years, 3 months ago
I cannot get the upload code to work at all. I know it is getting the right filename (without a path, maybe that is the problem?) because the name is stored in my db. Here is the attachment part of my form:
input type="text" id="fileName" class="file_input_textbox" 
input type="button" value="Attachment" class="file_input_button"
input type="file" class="file_input_hidden" 
And here is how I am calling it:

$handle = new Upload($fileToUpload);
if ($handle->uploaded) {
  // save uploaded image with no changes
  $handle->Process($dir_dest);
  error_log($handle->log);
  if ($handle->processed) {
    error_log("processed");
    echo 'original image copied';
  } else {
    error_log('error : ' . $foo->error);
  }
  $handle->Clean();
  // return $dir_dest . $handle;
}

I get NO errors of any kind. Am I missing something in my code? ThanksReply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important