core.js:5873 ERROR TypeError: Cannot read property 'filename' of undefined
问题 I am trying to store some images on my Node.JS server and read it from Angular client with the following codes: image.ts: export class Image { fieldname: string; originalname: string; encoding: string; mimetype: string; destination: string; filename: string; path: string; size: number; } image.service.ts: export class ImagesService { constructor(private http: HttpClient, private processHTTPMsgService: ProcessHTTPMsgService) { } getImages(): Observable<Image[]> { return this.http.get<Image[]>