Important Notice - Forums is archived
To simplify things and help our users to be more productive, we have archived the current forum and focus our efforts on helping developers on Stack Overflow. You can post new questions on Stack Overflow or join our Discord channel.

Vaadin lets you build secure, UX-first PWAs entirely in Java.
Free ebook & tutorial.
Save an image into directry after uploading
I used Simple Uploader component of vaadin to upload an image from client computer.
After upload the image i can get name of image and MIME type of image.
But i cant get the path of image.
So i cant save that uploaded image into server computer directory.
Give me a help to save that uploaded image to server computer directory.:(
Refer below link
http://vaadin.com/book/-/page/components.upload.html
It is a security feature of browsers not to send the original file path to the server. You need to decide in which server directory to save the files and combine that path with the uploaded file name.
Note, however, that some browsers do send the path (some older versions of IE do if my memory serves me correctly). Therefore, you should strip away any path the file names may have (anything before and including a slash, a backslash and maybe a colon; stricter file name validation is recommended if you are going to write a file with the name given by the user). This is also in general a very good idea to help avoid attacks where the user e.g. overwrites a system file in some other directory with an uploaded one.