app/Controller/BannerController.php 1 location
|
@@ 65-72 (lines=8) @@
|
| 62 |
|
|
| 63 |
|
$image = $_FILES['imagem']; |
| 64 |
|
|
| 65 |
|
if (!empty($image['name'])) { |
| 66 |
|
$retorno = $this->uploadImage($image); |
| 67 |
|
|
| 68 |
|
if (!$retorno['status']) |
| 69 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 70 |
|
|
| 71 |
|
$dados['imagem'] = $retorno['nome']; |
| 72 |
|
} |
| 73 |
|
|
| 74 |
|
|
| 75 |
|
$dados['id_usuario'] = $this->instancia; |
app/Controller/ProdutoController.php 1 location
|
@@ 420-427 (lines=8) @@
|
| 417 |
|
|
| 418 |
|
$image = $_FILES['imagem']; |
| 419 |
|
|
| 420 |
|
if (!empty($image['name'])) { |
| 421 |
|
$retorno = $this->uploadImage($image); |
| 422 |
|
|
| 423 |
|
if (!$retorno['status']) |
| 424 |
|
$this->Session->setFlash('Não foi possivel salvar a imagem tente novamente'); |
| 425 |
|
|
| 426 |
|
$dados['imagem'] = $retorno['nome']; |
| 427 |
|
} |
| 428 |
|
|
| 429 |
|
|
| 430 |
|
$dados['id_usuario'] = $this->instancia; |