diff --git a/resources/assets/javascripts/bootstrap/files.js b/resources/assets/javascripts/bootstrap/files.js
index 310b2ed08947e5eb56fd85450439f146570b61a2..0cc8642a652565a4e26d1f40ee67d0172d2092da 100644
--- a/resources/assets/javascripts/bootstrap/files.js
+++ b/resources/assets/javascripts/bootstrap/files.js
@@ -76,8 +76,11 @@ jQuery(document).on('ajaxComplete', (event, xhr) => {
                 console.log('Error parsing payload', e);
             }
         }
-
-        handler(values);
+        let options = {};
+        if (key === 'redirect') {
+            options.size = 'default';
+        }
+        handler(values, options);
     }
 
     process('added_files', STUDIP.Files.addFileDisplay);