diff --git a/templates/web/prod/upload/upload.html.twig b/templates/web/prod/upload/upload.html.twig
index 62b5b4df30..e85380eef2 100644
--- a/templates/web/prod/upload/upload.html.twig
+++ b/templates/web/prod/upload/upload.html.twig
@@ -286,8 +286,9 @@ $(document).ready(function () {
});
//cancel request
- $('button.cancel', data.context).bind('click', function (e) {
+ $('button.remove-element', data.context).bind('click', function (e) {
jqXHR.abort();
+ data.context.remove();
});
});
});