Hi, i am trying to upload a file with upload.class and i need to overwrite the file when the user upload a new one. But instead of overwriting, he is putting photo_01, photo_02, etc... The code:
$foto = new Upload($_FILES['photo']);
$fotot = new Upload($_FILES['photo']);
$fotot->image_resize = true;
$fotot->image_y = 110;
$fotot->image_x = 110;
$foto->file_new_name_body = "photo";
$fotot->file_new_name_body = "photo";
$foto->file_overwrite = true;
$fotot->file_overwrite = true;
$fotot->Process("{$dir_fotos}thumbs/");
$foto->Process("{$dir_fotos}");
Somebody has already passed by this or has a solution??? notice that i'm using file_ovewrite = true; thanks
I solved the problem...sorry spending your time