This is an archived copy of the forum for reference purposes
Rename with fUpload
posted by
anonymous
8 years ago
Hi! How can I rename a file using fUpload? I got this:
$file = new fUpload();
$dir = new fDirectory($_SERVER['DOCUMENT_ROOT'].'/'.FOLDER.'/files');
$up = $file->move($dir, 'file_name'); //file_name is the html field
Thanks!
I'm doing this
$cam = new fFile($pathW.$file_name);
$cam->rename('new_name', TRUE);