0

I am new to GWT, and trying to understand how the gwt upload works. I am using this link to learn about how to upload files. This is the client side code.

http://examples.roughian.com/index.htm#Widgets~FileUpload

However, I have no idea about the servlets and how they work. What if I wanted to upload files to a local directory on my system, how can I achieve that ?

1 Answers1

0

What is the use case behind what you try to accomplish? I.e. what makes you want to upload files to a local directoy?

As Baz says: what do you mean with "local"? Do you mean local to the browser?

If so, that is normally not allowed directly as it violates the browser "sandbox". Upload means upload to a server, which normally is a different system than where the browser runs. Than again if you do run the server locally (i.e. on the same machine as the browser) you can get access the local resources via the server.

So... not sure if I understand what you try to accomplish. Or is it more for educational purposes and trying to learn client-server communication?

See also e.g. Local file access with javascript

Community
  • 1
  • 1
ruggi
  • 84
  • 4