aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/forms/reactive-file.component.html
blob: 9fb1c9e3ee9937cbcfa2a053413673c2dbd6d9e1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<div class="root">
  <div class="button-file">
    <span>{{ inputLabel }}</span>
    <input
      type="file"
      [name]="inputName" [id]="inputName" [accept]="extensions"
      (change)="fileChange($event)"
    />
  </div>

  <div i18n class="file-constraints">(extensions: {{ allowedExtensionsMessage }}, max size: {{ maxFileSize | bytes }})</div>

  <div class="filename" *ngIf="displayFilename === true && filename">{{ filename }}</div>
</div>