Arun Kumar Mudraboyina
Arun Kumar Mudraboyina

Reputation: 779

upload a file using gwt with out showing the file chooser,send file by picking it from default location

I'm beginner to GWT,I've a task that I need to upload a file to the server but the constraint here is, we should not show the file chooser dialogbox.

with the given input file name we pick that file from the default file location and uploads it. I think the requirement is clear to you..Please help me on this.

thank you

Upvotes: 1

Views: 486

Answers (1)

Parvathy
Parvathy

Reputation: 2445

FileUpload is the widget in GWT for uploading file but you have to choose a file. follow this.

There is no way in GWT to get file in client. If you don't want to choose a file from a default location then just give a text box and read file name, then pass this file name to server and do enough processing there, you can't take File in client side.

Upvotes: 2

Related Questions