Set input to accepting xml files only

This commit is contained in:
Michał Romaszkin 2020-04-24 10:49:53 +02:00
parent 104abd6ee3
commit 014a03e55f

View File

@ -19,4 +19,9 @@
<button nbButton status="primary" (click)="openFileDialog($event)">
Wybierz plik
</button>
<input id="input-for-file" type="file" (change)="fetchAndEmitFile($event)" />
<input
id="input-for-file"
type="file"
(change)="fetchAndEmitFile($event)"
accept=".xml"
/>