Skip to content

Instantly share code, notes, and snippets.

@sunnyy02
Created September 11, 2022 00:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sunnyy02/5ca3ff862eb226a21ee9973e5bd142d0 to your computer and use it in GitHub Desktop.
Save sunnyy02/5ca3ff862eb226a21ee9973e5bd142d0 to your computer and use it in GitHub Desktop.
<input #fileInput type="file" class="file-input" [accept]="acceptedFileExtensions" (change)="attachFile($event)" />
<div class="row document-type">
<div class="col-xs-12">
<button class="fileButton" action="file" (click)="onSelectFile()" type="submit">Upload document</button>
allowed file types(JPG, PNG, GIF)
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment