HyperOsmar
Member
Dear friends,
Following the guidelines I found on the forum, I put the following code in the element FileUpload (file_upload):
The file is saved correctly as desired, but the following error message appears (file_upload2):
Can anyone help me understand this error???...
Tks...
Following the guidelines I found on the forum, I put the following code in the element FileUpload (file_upload):
$nome = $formModel->getElementData('cad_modelo_cadastro___fullname_raw');
$cpf = $formModel->getElementData('cad_modelo_cadastro___username_raw');
ext = JFile::getExt($filename);
$cpf = $formModel->getElementData('cad_modelo_cadastro___username_raw');
ext = JFile::getExt($filename);
$filename = $nome."-".$cpf.".".$ext;
return $filename;
return $filename;
The file is saved correctly as desired, but the following error message appears (file_upload2):
"An error occurred with the rating field - please inform the site administrator.
Debug: Eval exception : arquivos::renameFile() : OSMAR DE ARAUJO-41101780230.pdf : Undefined property: stdClass::$cad_modelo_cadastro___id_raw"
Debug: Eval exception : arquivos::renameFile() : OSMAR DE ARAUJO-41101780230.pdf : Undefined property: stdClass::$cad_modelo_cadastro___id_raw"
Can anyone help me understand this error???...
Tks...