Local file doesn't exist

See all posts Reply

Local file doesn't exist new!
by atomp3, 16 years, 8 months ago
Hi

Strange problem. On localhost everythink works fine but on Hosting I have this error:

Local file doesn't exist. source is a local file C:\Users\atomp3\Pictures\cars\Ford_Mondeo_04.jpg

Directory is set to 777

function uploadFile($x) {
  $objResponse = new xajaxResponse();
  $handle = new Upload($x['file_name']);
  // then we check if the file has been uploaded properly
  // in its *temporary* location in the server (often, it is /tmp)
  if ($handle->uploaded) {
    if ($handle->processed) {
      // we now process the image a second time, with some other settings
      $handle->file_overwrite = true;
      $handle->image_resize            = true;
      $handle->image_ratio_y           = true;
      $handle->jpeg_quality           = $x['file_q'];
      $handle->image_x                = $x['file_width'];
      //$handle->file_new_name_body    = $x['file_name'];
      $handle->Process('images/'.$x['file_path'].'/');
    } else {
      $objResponse->call('xajax_atompAjax.Message','error','Upload failed || '.$handle->error.$handle->log.'');
    }
  }
}

Thanks for any help.Reply
Re: Local file doesn't exist new!
by colin, 16 years, 8 months ago
You are sure the file actually exists, right?

Your hosting system runs under Windows? What are the differences between your dev and prod systems?Reply
Re: Local file doesn't exist new!
by Raphael, 16 years, 3 months ago
My hosting is Linux and my prod system is Windows.Reply