简体   繁体   中英

How to Get Directory and filename from User for vaadin download

.hi. I am trying to download a file from vaadin server. i found FileDownloader FileDownloader(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).

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM