diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index a003e5eec86..0d7df31f355 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -246,8 +246,8 @@ $(document).ready(function() {
 				if (selection.totalBytes > $('#free_space').val()) {
 					data.textStatus = 'notenoughspace';
 					data.errorThrown = t('files', 'Not enough free space, you are uploading {size1} but only {size2} is left', {
-						'{size1}': humanFileSize(selection.totalBytes),
-						'{size2}': humanFileSize($('#free_space').val())
+						'size1': humanFileSize(selection.totalBytes),
+						'size2': humanFileSize($('#free_space').val())
 					});
 				}