Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nutrapharm_producto
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Cristian Mauricio Diaz Canales
nutrapharm_producto
Commits
11d72db4
Commit
11d72db4
authored
May 28, 2020
by
Cristian Mauricio Diaz Canales
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Actualizacion
parent
75a8a53e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/Resources/views/producto/landing_producto.html.twig
app/Resources/views/producto/landing_producto.html.twig
+2
-2
src/NutrapharmBundle/Controller/DefaultController.php
src/NutrapharmBundle/Controller/DefaultController.php
+2
-2
No files found.
app/Resources/views/producto/landing_producto.html.twig
View file @
11d72db4
...
...
@@ -221,10 +221,10 @@
$
(
"
#btnGuardar
"
).
prop
(
"
disabled
"
,
true
);
if
(
imagenTomada
==
true
&&
imagenSubida
==
false
){
formData
.
append
(
"
upload_file
"
,
false
);
formData
.
append
(
"
upload_file
"
,
0
);
formData
.
append
(
"
imagen
"
,
$
(
"
#photo
"
).
attr
(
'
src
'
));
}
else
if
(
imagenSubida
==
true
&&
imagenTomada
==
true
){
formData
.
append
(
"
upload_file
"
,
true
);
formData
.
append
(
"
upload_file
"
,
1
);
}
console
.
log
(
this
.
file
);
...
...
src/NutrapharmBundle/Controller/DefaultController.php
View file @
11d72db4
...
...
@@ -56,10 +56,10 @@ class DefaultController extends Controller {
$correo
=
$request
->
get
(
"mailUsuario"
,
null
);
$comentario
=
$request
->
get
(
"comentarioFotoUsuario"
,
null
);
$usuarioNutraPharm
=
$request
->
get
(
"usuarioNutraPharm"
,
null
);
$uploadFile
=
$request
->
get
(
"upload_file"
,
false
);
$uploadFile
=
$request
->
get
(
"upload_file"
,
0
);
if
(
$uploadFile
==
true
)
{
//foto subida
if
(
$uploadFile
==
1
)
{
//foto subida
$file
=
$request
->
files
->
get
(
'imagen'
);
if
(
empty
(
$file
))
{
return
new
JsonResponse
(
array
(
"msg"
=>
"No se subio una imagen"
,
"tipo"
=>
UsuarioNutrapharm
::
ESTADO_FOTO_INICIAL
),
Response
::
HTTP_BAD_REQUEST
,
[
'content-type'
=>
'application/json'
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment