Skip to content

Commit

Permalink
Merge pull request #20 from payammeyer/master
Browse files Browse the repository at this point in the history
Fix for #11
  • Loading branch information
manolo committed Apr 13, 2016
2 parents 9d5ad8e + 726463b commit c8c13d7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion core/src/main/java/gwtupload/client/Uploader.java
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,11 @@ public void onResponseReceived(Request request, Response response) {

private SubmitCompleteHandler onSubmitCompleteHandler = new SubmitCompleteHandler() {
public void onSubmitComplete(SubmitCompleteEvent event) {
if (event.getResults() == null || event.getResults().isEmpty()) {
// https://github.com/manolo/gwtupload/issues/11
log("Ignoring empty message in onSubmitComplete", null);
return;
}
updateStatusTimer.cancel();
onSubmitComplete = true;
serverRawResponse = event.getResults();
Expand Down Expand Up @@ -1314,7 +1319,7 @@ private void uploadFinished() {
statusWidget.setStatus(IUploadStatus.Status.ERROR);
}
onFinishUpload();
reatachIframe(uploadForm.getElement().getAttribute("target"));
//reatachIframe(uploadForm.getElement().getAttribute("target"));
}

// Fix for issue http://stackoverflow.com/questions/27711821
Expand Down

1 comment on commit c8c13d7

@zouabimourad
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi,

Have you plannified a new release with this fix.

Regards.

Please sign in to comment.