Temp File Location?

See all posts Reply

Temp File Location? new!
by Jim, 17 years, 3 months ago
Is there anyway to get the temp file location and file name? I'm trying to read the EXIF data of the orginal file before it gets over written. Thanks!Reply
Re: Temp File Location? new!
by Jim, 17 years, 3 months ago
Nevermind! Got it!
$tempfile = $handle->file_src_pathname;

And for those looking to view the EXIF data of a photo use this line. It'll make an array called $exif
$exif = exif_read_data($tempfile, 0, true);
Reply
Re: Temp File Location? new!
by colin, 17 years, 3 months ago
I will implement EXIF support in a future release, it is planned. At least to transfer over the EXIF data, maybe to also edit it.Reply
Re: Temp File Location? new!
by dimitrikx, 10 years, 2 months ago
$exif = exif_read_data($_FILES['Filedata']["tmp_name"]);
if(!empty($exif['Orientation'])) {          
  switch($exif['Orientation']) {
    case 8:
      echo 2;
      $handle->image_rotate = 270;
      break;
    case 3:
      echo 3;
      $handle->image_rotate = 180;
      break;
    case 6:
      echo 4;
      $handle->image_rotate = 90;
      break;
  }
}
Reply