FileUpload and user clicking "Cancel"

0 views
Skip to first unread message

Niels Ott

unread,
Nov 10, 2009, 11:05:58 AM11/10/09
to google-we...@googlegroups.com
Dear GWT professionals,

we are successfully using the FileUpload widget in a project. However,
there is one glitch which I'm not how to treat it.

Most browsers by default ask the user something like "Do you really want
to upload the selected file?" The GWT Hosted Mode Browser does so as well.

The FormPanel's SubmitHandler gets triggered, but if the user clicks
Cancel in the browser's question named above, there apparently is no way
of noticing this. No SubmitCompleteHandler is triggered in that case.
Hence there is no way of recognizing that the upload actually failed.

Is there a work around for this issue?

Thanks in advance.

Niels

--
Niels Ott
http://www.drni.de/niels/

Reply all
Reply to author
Forward
0 new messages