Reply to $file_safe_name

$file_safe_name new!
by Kokolo, 15 years, 1 month ago
Is it possible to echo $file_safe_name variable?

This isn't working:
echo $handle->file_safe_name;

And this also:
echo $file_safe_name;

This is the original code:
$handle = new upload($_FILES['image_field']);
if ($handle->uploaded) {
  $handle->file_new_name_body   = $_POST['date'] . $_POST['title'];
  $handle->image_resize         = true;
  $handle->image_x              = 100;
  $handle->image_ratio_y        = true;
  $handle->process('images/');
  if ($handle->processed) {
    echo $_POST['date'] . $_POST['title'];
    echo $handle->file_safe_name;
    echo "OK";
    $handle->clean();
  } else {
    echo 'error : ' . $handle->error;
  }
}
Reply

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