Proyectos de Subversion LeadersLinked - Backend

Rev

Rev 17242 | Rev 17245 | Ir a la última revisión | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 17242 Rev 17244
Línea 508... Línea 508...
508
                $storage->setFiles($request->getFiles()->toArray());
508
                $storage->setFiles($request->getFiles()->toArray());
Línea 509... Línea 509...
509
                
509
                
510
                if (!$storage->setCurrentFilename('image')) {
510
                if (!$storage->setCurrentFilename('image')) {
511
                    return new JsonModel([
511
                    return new JsonModel([
512
                        'success'   => false,
512
                        'success'   => false,
513
                        'data'      => 'ERROR_UPLOAD_IMAGE'
513
                        'data'      => 'Error al setear el nombre del archivo'
514
                    ]);
514
                    ]);
Línea 515... Línea 515...
515
                }
515
                }
516
 
516
 
Línea 526... Línea 526...
526
                );
526
                );
Línea 527... Línea 527...
527
 
527
 
528
                if (!$storage->uploadImageCrop($source_filename, $target_filename, $target_width, $target_height)) {
528
                if (!$storage->uploadImageCrop($source_filename, $target_filename, $target_width, $target_height)) {
529
                    return new JsonModel([
529
                    return new JsonModel([
530
                        'success'   => false,
530
                        'success'   => false,
531
                        'data'      => 'ERROR_UPLOAD_IMAGE'
531
                        'data'      => 'Error al subir la imagen'
532
                    ]);
532
                    ]);
Línea 533... Línea 533...
533
                }
533
                }
534
 
534