_updateUploadButtonDescription() {
    const erroneousFilesNames = /** @type {string[]} */ ([]);
    let errorMessage;

    this._selectedFilesMetaData.forEach(file => {
      if (file.status === 'FAIL') {
        errorMessage = file.validationFeedback ? file.validationFeedback[0].message.toString() : '';
        erroneousFilesNames.push(/** @type {string} */ (file.systemFile.name));
      }
    });

    const selectedFiles = this.querySelector('[slot="after"]');
    if (selectedFiles) {
      if (!this._selectedFilesMetaData || this._selectedFilesMetaData.length === 0) {
        if (this.uploadOnSelect) {
          selectedFiles.textContent = /** @type {string} */ (
            this.msgLit('lion-input-file:noFilesUploaded')
          );
        } else {
          selectedFiles.textContent = /** @type {string} */ (
            this.msgLit('lion-input-file:noFilesSelected')
          );
        }
      } else if (this._selectedFilesMetaData.length === 1) {
        const { name } = this._selectedFilesMetaData[0].systemFile;
        if (this.uploadOnSelect) {
          selectedFiles.textContent = /** @type {string} */ (
            errorMessage || this.msgLit('lion-input-file:fileUploaded') + (name ?? '')
          );
        } else {
          selectedFiles.textContent = /** @type {string} */ (
            errorMessage || this.msgLit('lion-input-file:fileSelected') + (name ?? '')
          );
        }
      } else if (this.uploadOnSelect) {
        selectedFiles.textContent = `${this.msgLit('lion-input-file:filesUploaded', {
          numberOfFiles: this._selectedFilesMetaData.length,
        })} ${
          errorMessage
            ? this.msgLit('lion-input-file:generalValidatorMessage', {
                validatorMessage: errorMessage,
                listOfErroneousFiles: erroneousFilesNames.join(', '),
              })
            : ''
        }`;
      } else {
        selectedFiles.textContent = `${this.msgLit('lion-input-file:filesSelected', {
          numberOfFiles: this._selectedFilesMetaData.length,
        })} ${
          errorMessage
            ? this.msgLit('lion-input-file:generalValidatorMessage', {
                validatorMessage: errorMessage,
                listOfErroneousFiles: erroneousFilesNames.join(', '),
              })
            : ''
        }`;
      }
    }
  }
Description for screen readers connected to the button about how many files have been updated
@protected