Temp File Location?

See all posts See thread Reply

Re: Temp File Location? new!
by Jim, 16 years, 8 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, 16 years, 8 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, 9 years, 7 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