ОШИБКА DOMException: не удалось выполнить 'setRequestHeader' для 'XMLHttpRequest': 'Content-Type' не является допустимым именем поля заголовка HTTP.
uploadfileAWSS3(file: any, fileuploadurl: string): Observable<any> {
//this will be used to upload all csv files to AWS S3
const headers = new HttpHeaders('Content-Type : image/png');//{ 'Content- Type' : file.type}
const req = new HttpRequest(
'PUT',
fileuploadurl,
file,
{
headers: headers,
reportProgress: true, //This is required for track upload process
});
return this.httpClient.request(req);
}