Reply to Re: Rename file

Re: Rename file new!
by Thomas, 4 years, 7 months 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

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