diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index a67a359882..c8b3a150ca 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -579,7 +579,7 @@ OC.Upload = {
input.val(newName);
input.attr('id', fileType);
}
- var label = $('');
+ var label = $('');
label.attr('for', fileType);
form.append(label).append(input);