example - symfony api
Cargando archivo de imagen a través de API usando Symfony2 y FOSRESTBundle (4)
Esta es una carga completa desde el código de api bit. Esto carga el archivo, pero todavía tengo problemas para validar el archivo cargado. Espero que esto ayude.
Esto utiliza el paquete fosrest para REST.
private function addResource(Entity $resource) {
$em = $this->getDoctrine()->getManager();
$em->persist($resource);
$em->flush();
}
private function processForm(Entity $resource)
{
$em = $this->getDoctrine()->getManager();
$uploadedFile = null;
$form = $this->createForm(new EntityForm(), $resource);
foreach ($_FILES as $file) {
$uploadedFile = new UploadedFile(
$file[''tmp_name''],
$file[''name''], $file[''type''],
$file[''size''], $file[''error''],
$test = false);
}
$submitData = array(
"file" => $uploadedFile,
);
$form->submit($submitData);
if ($form->isValid()) {
$repository = $this->getDoctrine()
->getRepository(''AcmeBundle:Product'');
$view = View::create();
$resource->setFile($uploadedFile);
// handling api requests
if ($this->getRequest()->getMethod() == "POST") {
$this->addResource($resource);
// store image url
$resource = $repository->find($resource->getId());
if ($resource->getImage()) {
$fs = new Filesystem();
if ($fs->exists($resource->getWebPath())) {
$resource->setImagePath($resource->getWebPath());
}
$this->addResource($resource);
}
$view->setData($resource);
}
return $view;
}
return View::create($form);
}
He estado codificando una API para una aplicación para compartir fotos como Instagram usando Symfony2, FOSRESTBundle y Vichuploader para cargar archivos.
Puedo solucionar las solicitudes GET y POST, pero no puedo encontrar un ejemplo de cómo adjuntar a una solicitud POST, la imagen real, de modo que, en mi caso, Vichuploader pueda capturarla y ayudarme con la carga del archivo. .
Por cierto, puedo cargar un archivo sin problemas utilizando la pila mencionada mediante el uso de un formulario normal.
He estado buscando una solución sobre el mismo problema exacto. Aquí esta lo que hice.
Primero déjame explicarte mis limitaciones. Quería que mi API estuviera llena de JSON y tomara el poder del protocolo HTTP (encabezados, métodos, etc.). Elegí usar:
- Symfony2 para "todo está casi hecho para ti, solo codifica la lógica de tu negocio".
- Doctrine2 porque, de forma predeterminada, con Symfony2 y proporciona una manera de integrarse con el DBMS más popular cambiando una línea.
- FOSRestBundle para manejar la parte REST de mi API (hacer el máximo con anotaciones, escucha del cuerpo, formato automático para la respuesta con soporte de JMSSerializer, etc.).
- KnpGaufretteBundle porque quería que me permitieran cambiar la forma en que almaceno el archivo blob rápidamente.
Primera solución prevista: base64
Mi primer pensamiento, porque siempre pensaba en JSON, era codificar todas las imágenes entrantes en base64, luego decodificarlas dentro de mi API y almacenarlas.
La ventaja de esta solución es que puede pasar imágenes junto con otros datos. Por ejemplo, subir el perfil de un usuario completo en una llamada a la API. Pero leí que las imágenes de codificación en base64 las hacen crecer en un 33% de su tamaño inicial. No quería que mis usuarios se quedaran sin datos móviles después de enviar 3 imágenes.
Segunda solución prevista: la forma
Entonces pensé en usar formularios como se describe arriba. Pero no sabía cómo mis clientes podían enviar tanto datos JSON (por ejemplo, {"last_name":"Litz"}
) como datos de imagen (por ejemplo, image/png
one). Sé que se puede tratar con un Content-Type: multipart/form-data
pero nada más.
Además, no estaba usando formularios en mi API desde el principio y quería que fuera uniforme en todo mi código. [Mini-edición: hoho, algo que acabo de descubrir, here ]
Tercera y última solución: usar HTTP ..
Entonces, una noche, la revelación. Estoy usando Content-Type: application/json
para enviar datos JSON. ¿Por qué no usar image/*
para enviar imágenes? Tan fácil que busqué por días antes de venir con esta idea. Así es como lo hice (código simplificado). Supongamos que el usuario está llamando PUT /api/me/image
con un Content-Type: image/*
UserController :: getUserImageAction (Request $ request) - Captura la solicitud
// get the service to handle the image $service = $this->get(''service.user_image''); $content = $request->getContent(); $userImage = $service->updateUserImage($user, $content); // get the response from FOSRestBundle::View $response = $this->view()->getResponse(); $response->setContent($content); $response->headers->set(''Content-Type'', $userImage->getMimeType()); return $response;
UserImageService :: updateUserImage ($ user, $ content) - Business Logic (Pongo todo aquí para que sea más fácil de leer)
// Create a temporary file on the disk // the temp file will be delete at the end of the script // see http://www.php.net/manual/en/function.tmpfile.php $file = tmpfile(); if ($file === false) throw new /Exception(''File can not be opened.''); // Put content in this file $path = stream_get_meta_data($file)[''uri'']; file_put_contents($path, $content); // the UploadedFile of the user image // referencing the temp file (used for validation only) $uploadedFile = new UploadedFile($path, $path, null, null, null, true); // the UserImage to return $userImage = $user->getUserImage(); if (is_null($userImage)) { $userImage = new UserImage(); $userImage->setOwner($user); // auto persist with my configuration // plus generation of a unique ID that allows // me to retrieve the image at anytime $userImage->setKey(/*random string*/); } // fill the UserImage properties $userImage->setImage($uploadedFile); $userImage->setMimeType($uploadedFile->getMimeType()); /** @var ConstraintViolationInterface $validationError */ if (count($this->getValidator()->validate($userImage)) > 0) throw new /Exception(''Validation''); // if no error we can write the file definitively // [KnpGaufretteBundle code to store on disk] // [use the UserImage::key to store] $this->getEntityManager()->flush(); return $userImage;
Un ejemplo de un método de carga que exepta solicitudes de publicación:
public function uploadAction() {
$em = $this->getDoctrine()->getManager();
$document = new Document();
foreach ($_FILES as $file) {
$document->setTitle($file[''name'']);
$document->file = new UploadedFile($file[''tmp_name''],
$file[''name''], $file[''type''],
$file[''size''], $file[''error''], $test = false);
$em->persist($document);
$em->flush();
break;
}
$serializer = $this->get(''jms_serializer'');
$data = $serializer->serialize(
$document, ''json'',
SerializationContext::create()->setGroups(array(''someGroup'')));
return new Response($data);
}
Por lo tanto, esta acción primero almacena el documento en el servidor y devuelve una respuesta json que contiene los metadatos y la ruta del documento. Utilicé la respuesta para su posterior procesamiento en mi aplicación web.
No estoy familiarizado con VichUploader, el código anterior es el código nativo de Symfony2 usando Symfony / Component / HttpFoundation / File / UploadedFile .
Lea: http://symfony.com/doc/current/cookbook/doctrine/file_uploads.html
Utiliza tipos de formulario para publicaciones con FOSRestBundle:
Por ejemplo tienes este tipo de formulario:
public function buildForm(FormBuilderInterface $builder, array $options)
{
$builder
->add(''facebook_id'',
''text'',
array(
''mapped'' => FALSE
)
)
->add(''profile_pic'',
''text'',
array(
''mapped'' => FALSE
)
)
;
$builder->addValidator(new CallbackValidator(function(FormInterface $form)
{
if ($form["facebook_id"]->getData() === '''' || $form["facebook_id"]->getData() === NULL)
{
$form->get(''facebook_id'')->addError(new FormError(''facebook_id should not be empty''));
}
if ($form["profile_pic"]->getData() === '''' || $form["profile_pic"]->getData() === NULL)
{
$form->get(''profile_pic'')->addError(new FormError(''profile_pic should not be empty''));
}
})
);
}
public function setDefaultOptions(OptionsResolverInterface $resolver)
{
$resolver->setDefaults(array(
// ''validation_constraint'' => $collectionConstraint,
''csrf_protection'' => FALSE,
));
}
public function getName()
{
return ''data'';
}
Entonces, lo que puedes hacer es publicar JSON en la API. No olvide establecer el encabezado como "Content-type = application / json" cuando realice un POST.
La estructura JSON se vería así:
{
"data": {
"facebook_id": "12345",
"profile_pic": "/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAAPAAA/+4ADkFkb2JlAGTAAAAAAf/bAIQABgQEBAUEBgUFBgkGBQYJCwgGBggLDAoKCwoKDBAMDAwMDAwQDA4PEA8ODBMTFBQTExwbGxscHx8fHx8fHx8fHwEHBwcNDA0YEBAYGhURFRofHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8f/8AAEQgCrgP8AwERAAIRAQMRAf/EAKoAAQADAQADAQAAAAAAAAAAAAACBggHAwQFAQEBAAMBAQEBAQAAAAAAAAAAAAUGBwMIAgQBEAEAAAMECAYCAQMEAQUBAAAAAQIDswQFBxFxsRJyEzMGkVIUdTY3USIhMTIVQSMkFkJhYkNjNBcRAQABAQYFAgQDBQcEAwEAAAABAhGBsQM0BSFxEjJzMQZhIhME8EFRkaHBQhTR4fFSYiMzcoKSovJDUyT/2gAMAwEAAhEDEQA/AMs1atXmz/vN/dH/AFj+QR5tXzzeMQObV883jEDm1fPN4xA5tXzzeMQfkalSP8RmjGH/AKxAhPPD+k0Yaoha/ebV883jEDm1fPN4xA5tXzzeMQObV883jEDm1fPN4xB+Rnmj/WMY64haQqVIQ0QmjCGuIP3m1fPN4xA5tXzzeMQObV883jEDm1fPN4xAjVqR/iM8fGII6Y/kf22TTH8hbJpj+Qtk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Tv6Nznfr1P6f+X+pbV9W2z5ur99p0ZH9B09U/Q+jZ1fn0dHr6evTx9Ln/2Q=="
}
}
¿Por qué este json está envuelto en "datos"? Debido a que su tipo de formulario también tiene "datos" en getName, usará la validación y etc.
Lo que siempre hago es codificar mis imágenes como una cadena base64 mientras las envío a la API.
Luego, en la función de publicación, simplemente lo convierte de nuevo:
$base64 = $form[''profile_pic'']->getData();
//decode back to image data and create image
$image = imagecreatefromstring(base64_decode($base64));
imagepng($image, $path);