Best alternative is to use XMLHttpRequest for file uploads (through JSNI or JsInterop/Elemental2): https://caniuse.com/#feat=xhr2 See https://developer.mozilla.org/en-US/docs/Web/API/FormData/Using_FormData_Objects#Sending_files_using_a_FormData_object
On Thursday, April 5, 2018 at 12:01:09 PM UTC+2, Dejan Kulesevic wrote: > > Hi, > > FormPanel SubmitCompleteEvent is not triggered on FireFox and Safari in > case of http status code 400 response (could be all error codes, not sure), > but it is triggered for http status code 200 response. On Chrome it works > for both 200 and 400 responses. > > We have two file upload forms, one is receiving json, the other one is > receiving text/html response, the behavior is the same for both of those. > GWT version is 2.8.2, Mac os version is 10.13.3 > > Chrome (version 65.0.3325.181): > Response http status code 200, SubmitCompleteEvent *is triggered*, > Response http status code 400, SubmitCompleteEvent *is triggered* > > Firefox (version 59.0.2) > Response http status code 200, SubmitCompleteEvent *is triggered*, > Response http status code 400, SubmitCompleteEvent *is not triggered* > > Safari (version 11.0.3) > Response http status code 200, SubmitCompleteEvent *is triggered*, > Response http status code 400, SubmitCompleteEvent *is not triggered > (response download :) )* > > One of the forms was a part of the old feature and it was working > correctly, but it also could be broken for some time, we only now > discovered the problem when designing the new feature with form. > > Is this a known bug? Is there a workaround? > > Regards > -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-web-toolkit. For more options, visit https://groups.google.com/d/optout.
