Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Configurando upload da imagem
- $config = array(
- 'file' => $data['Entidade']['file'],
- 'directory' => 'brasoes/'
- );
- $extension = array('gif', 'jpeg', 'png', 'jpg');
- // Limitando tipos de upload
- $upload = $this->Upload->setType($extension)
- ->setCustomName($codAuxiliar)->inicialize($config);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement