How to upload a file to GWT client side?

I'm kind of new to GWT and I'm looking at how to make a menu in my client application like File-> Open .. that will actually open a text file and allow me to edit it in some widgets? Is there a way to download such files?

+2


a source to share


2 answers


FileUpload

is a GWT widget that wraps an HTML element <input type='file'>

. Thus, like and <input type='file'>

, it uses the open / save dialog of the operating system.



+1


a source


You can add this functionality by setting the download dialog using a normal file input type and pointing the file-> open button to an event that triggers the "view" button for a portion of that input type.



+1


a source







All Articles