这是迄今为止生成的 html(GWT
用作前端),到目前为止,我所拥有的复制了 GWT FileUpload类。
<input type="file" id="input" onchange="handleFiles(this.file)">
在 的帮助下可以正常工作HandleFileUploadServet.java
,因为 java 作为后端。
使用 addSubmitCompleteHandler
form.addSubmitCompleteHandler(new SubmitCompleteHandler() {..
这相当于
.submit(function(){
//handle file response
})
工作正常。
这是问题,上传文件时如果互联网断开,浏览器没有 error/exception/response
抛出。
我想通知用户,存在网络问题。
但是浏览器继续提交表单并且没有从该状态返回。
有什么提示吗?
谢谢你的时间。