Rename file

See all posts See thread Reply

Re: Rename file new!
by Thomas, 4 years, 1 month ago
Hi, and what if i have this?

$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 advanceReply