Search code examples
javavaadinvaadin8

How to Get Directory and filename from User for vaadin download


.hi. I am trying to download a file from vaadin server. i found FileDownloaderFileDownloader(StreamResource resource , String fileName) that i can use for my purpose. But I'm looking for a way to get the directory and filename from client graphically and set it to my StreamResource. Something like a file chooser... what component can I use? I'm new to everything! so if my question is obscure, let me know(give me comment).


Solution

  • As André pointed out in the comments, you cannot control where a downloaded file is stored by the browser on client system. Usually the browser will ask the user for a file location to save the file being downloaded.