aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/images/image-upload.component.html
blob: c09c862c4167d2b79aa88e73a2786f0591f39ca9 (plain) (blame)
1
2
3
4
5
6
7
8
9
<div class="root">
  <my-reactive-file
    [inputName]="inputName" [inputLabel]="inputLabel" [extensions]="videoImageExtensions" [maxFileSize]="maxVideoImageSize"
    (fileChanged)="onFileChanged($event)"
  ></my-reactive-file>

  <img *ngIf="imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" [src]="imageSrc" class="preview" />
  <div *ngIf="!imageSrc" [ngStyle]="{ width: previewWidth, height: previewHeight }" class="preview no-image"></div>
</div>