11. Moving Around Files

Sending files to a server, or receiving a file from a server, is a common requirement, and GWT allows you to do so, but you’ll have to use tools we haven’t yet seen. In this chapter we’ll study these matters, see how to provide feedback to the user as the process runs, and even get to use different ways of communicating with the server, complementing the methods we already studied.

Uploading Files

Given the browser restrictions on client-side file handling (meaning, basically you cannot do anything at all with files!) uploading any files to a server requires more “classical” web programming, like submitting forms to send the data; we won’t be able to apply any of GWT or Ajax techniques to work otherwise.

We’ll start with ...

Get Essential GWT: Building for the Web with Google Web Toolkit 2 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.