Dm
Size: a a a
Dm
Вキ
ЕП
.
OP
AE
AE
OP
V
public onFileChange(imageInputEvent: any) {
const file: File = imageInputEvent.target.files[0];
const reader = new FileReaderFileReader();
this._imageService.uploadFile(file).subscribe(
(event: HttpEvent<any> | HttpResponse<any>) => { if (event instanceof HttpResponse) {
this.filePreviewSrc = event.body + '?' + DateDate.now(); // adding timestamp
reader.readAsDataURL(file);
}
}
);
}<img [src]="filePreviewSrc">V
s
Вキ
AS
SK
AI
РП
Д
РП
РП
РП