file input file types
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
file input file types
<input type="file" accept=".gif,.jpg,.jpeg,.png,.doc,.docx">
input type file in html events angular
// HTML
<input type="file" (change)="uploadFile($event)">
// TS
uploadFile(event: Event) {
const element = event.currentTarget as HTMLInputElement;
let fileList: FileList | null = element.files;
if (fileList) {
console.log("FileUpload -> files", fileList);
}
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us