Reply to Re: wrong file_dst_path

Re: wrong file_dst_path new!
by xavier, 8 years, 6 months ago
$_FILES['img_actu'] is a simple input type file with post method.

here, my page where i call the class

header( 'content-type: text/html; charset=utf-8' );

include('class.upload.php');

$handle = new upload($_FILES['img_actu'], 'fr_FR');
if ($handle->uploaded) {
  $handle->image_convert = 'jpg';
  $handle->file_new_name_body = 'actu';
  $handle->image_resize = true;
  $handle->image_ratio_y = true;
  $handle->image_x = 300;
  $handle->process('C:/wamp/www/test_img_php/images/');
}
echo $handle->file_dst_path;
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