1. si dosyanın thumb hali 2. si ise orjinal hali ama bir türlü olmadı.
hangisini önce alırsam onu yapıyor sizce ne yapmalıyım?
<?php
//include '../config.php';
include_once('class.upload.php');
$handle = new upload($_FILES['image_field']);
if ($handle->uploaded) {
$handle->process('../galeri2/');
if ($handle->processed) {
echo 'image resized';
$handle->clean();
} else {
echo 'error : ' . $handle->error;
}
}
unset($handle);
$handle = new upload($_FILES['image_field']);
if ($handle->uploaded) {
$handle->file_new_name_body = 'image_resized';
$handle->image_resize = true;
$handle->image_x = 100;
$handle->image_ratio_y = true;
$handle->process('../galeri2/thumb/');
if ($handle->processed) {
echo 'image resized';
$handle->clean();
} else {
echo 'error : ' . $handle->error;
}
}
?>