<div class="field">
  <div class="control is-expanded">
    <label class="is-label">
      {{#if this.label}}
        {{this.label}}
      {{/if}}
    </label>
    <div class="file has-name is-fullwidth">
      <label class="file-label">
        <input class="file-input" type="file" onchange={{action "pickedFile"}} data-test-file-input />
        <span class="file-cta button">
          <Icon @name="upload" class="has-light-grey-text" />
          Choose a file…
        </span>
        <span class="file-name has-text-grey-dark" data-test-text-file-input-label={{true}}>
          {{or this.fileName "No file chosen"}}
        </span>
        {{#if this.fileName}}
          {{! template-lint-configure no-nested-interactive "warn" }}
          <button type="button" class="file-delete-button" {{action "clearFile"}} data-test-text-clear>
            <Icon @name="x-circle" />
          </button>
          {{! template-lint-configure no-nested-interactive "on" }}
        {{/if}}
      </label>
    </div>
  </div>
  {{#if this.fileName}}
    <p class="help has-text-grey">
      This file is
      {{this.fileSize}}
      and was created on
      {{date-format this.fileLastModified "MMM dd, yyyy hh:mm:ss a"}}.
    </p>
  {{/if}}
  {{#if @fileHelpText}}
    <p class="help has-text-grey">
      {{@fileHelpText}}
    </p>
  {{/if}}
</div>