diff --git a/repository/filepicker.js b/repository/filepicker.js index 93e4490434688..d23f3615b3fa2 100644 --- a/repository/filepicker.js +++ b/repository/filepicker.js @@ -1625,6 +1625,9 @@ M.core_filepicker.init = function(Y, options) { }); content.one('form').set('id', id); content.one('.fp-file input').set('name', 'repo_upload_file'); + if (data.upload.label && content.one('.fp-file label')) { + content.one('.fp-file label').setContent(data.upload.label); + } content.one('.fp-saveas input').set('name', 'title'); content.one('.fp-setauthor input').setAttrs({name:'author', value:this.options.author}); content.one('.fp-setlicense select').set('name', 'license');