diff --git a/src/webui/www/public/upload.html b/src/webui/www/public/upload.html
index f7ded939d..c9bc1218f 100644
--- a/src/webui/www/public/upload.html
+++ b/src/webui/www/public/upload.html
@@ -49,7 +49,9 @@ window.addEvent('load', function() {
// is XHR2 available?
var xhr = new XMLHttpRequest();
if (xhr.upload)
- $('submitbutton').addClass("invisible");
+ $('submitbutton').addClass("invisible");
+ else
+ $('upload_frame').addEvent('load', function(e) { window.parent.closeWindows(); });
});
@@ -60,7 +62,7 @@ window.addEvent('load', function() {