vaadin 14 upload a captured image from a smartphone

I'm new to vaadin and I'm trying to upload an image to the server from a smartphone captured image.

I'm been using Spring Boot and the code rigth here : https://cookbook.vaadin.com/camera the image is successfully taked but I don't know how to configure a server directory path on an embembed tomcat server.

As I can read here https://vaadin.com/docs/v8/framework/components/components-upload

The following example uploads images to /tmp/uploads directory in (UNIX) filesystem (the directory must exist or the upload fails). The component displays the uploaded image in an Image component.

I'm been running under Windows 10 so no upload directory, or do I've missed something.

I also tryed to configure this :

spring.http.multipart.location=C:/tmp

Thx in advance for your advice.



Read more here: https://stackoverflow.com/questions/67944041/vaadin-14-upload-a-captured-image-from-a-smartphone

Content Attribution

This content was originally published by user3033090 at Recent Questions - Stack Overflow, and is syndicated here via their RSS feed. You can read the original post over there.

%d bloggers like this: