diff --git a/client/fileuploader.js b/client/fileuploader.js index a5aca098f..a3d6a1c51 100644 --- a/client/fileuploader.js +++ b/client/fileuploader.js @@ -333,7 +333,8 @@ qq.FileUploaderBasic.prototype = { acceptFiles: this._options.acceptFiles, onChange: function(input){ self._onInputChange(input); - } + }, + inputLabeledBy: $(this._options.element).attr('input-labeled-by') }); this.addDisposer(function() { button.dispose(); }); @@ -938,6 +939,10 @@ qq.UploadButton.prototype = { input.setAttribute("type", "file"); input.setAttribute("name", this._options.name); + if (this._options["inputLabeledBy"]) { + input.setAttribute("aria-labelledby", this._options["inputLabeledBy"]); + } + qq.css(input, { position: 'absolute', // in Opera only 'browse' button