0

AFAIK Vaadin's File Browser is Coupled with Upload process . But in my case , I just need only the file browser (What I exactly need is to get the path of the file to be uploaded). Please let me know a way of implementing the file browser in vaadin.

André Schild
  • 4,031
  • 5
  • 25
  • 39
chathura
  • 31
  • 1
  • 5

1 Answers1

1

Please see also this question and answers.

In short: No, you can't get the path of a selected file with javascript. Only the filename is possible, due to security restrictions of the webbrowsers.

Community
  • 1
  • 1
André Schild
  • 4,031
  • 5
  • 25
  • 39
  • Not necessary to be in javascript . I would prefer to have it in vaadin – chathura Oct 28 '15 at 04:19
  • Vaadin is working with javascript on the client side. It's the only thing you can safely use today. You could use a flash or .net app on your system, but then all users will have to have the plugin installed. – André Schild Oct 28 '15 at 07:06