Prueba de logs

parent f8757eed
......@@ -127,7 +127,7 @@ class DefaultController extends Controller {
$data = $this->getBase64Image($file);
$usuarioNutraPharm->setUnuExtInicial($data[1]);
$usuarioNutraPharm->save();
file_put_contents("$filename.$data[1]", $data[0]);
file_put_contents("$uploadDir/$filename.$data[1]", $data[0]);
}
return new JsonResponse(array("msg" => "La información se ha actualizado!", "tipo" => UsuarioNutrapharm::ESTADO_FOTO_ACTUALIZADA), Response::HTTP_OK, ['content-type' => 'application/json']);
} elseif ($tipo == UsuarioNutrapharm::ESTADO_FOTO_FINAL && $usuarioNutraPharm != null) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment