class.upload.php is a powerful and mature PHP class to manage uploaded files, and manipulate images in many ways. The script is available under a GPL license.
more info about the class
$MyObject = new Upload($_FILES['UPLOADFILE']);
if ($MyObject->uploaded) {
$MyObject->file_new_name_body = '{TEST-55888-49651654}';
$MyObject->file_max_size = 31048576;
$MyObject->process($pathupload);
if ($MyObject->processed) {
echo 'OK';
$MyObject->clean();
} else {
echo 'error : ' . $MyObject->error;
}
}
--------------------------------------------------
My problem is that file is saved without {} chars like this:
TEST-55888-49651654.pdf
How to fix this problem ?
Thanks in advance