<!-- Add a file input to your template --> <input type="file" (change)="onFileChange($event)" /> <!-- Add a button to trigger the file input --> <button (click)="fileInput.click()">Upload File</button>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter