How to check the response or status code in angular 8 for upload file to S3 Presigned URL and statusCode is 200
问题 Request to upload file: // upload file to the pre-signed url const httpOptions = { headers: new HttpHeaders({ 'Content-Disposition': 'attachment;filename=' + file.name + '', observe: 'response' }) }; this.httpClient.put(preSingedUrl, file, httpOptions) .subscribe((response: HttpResponse<any>) => { console.log(response); // it's returning null }); response is always getting null, but in the network tab status is 200 OK. access-control-allow-methods: GET, POST, OPTIONS access-control-allow