Вキ
ng update @angular/cli@7 --migrate-only --from=6.0.0
ng update @angular/core@7 --migrate-only --from=6.0.0
Size: a a a
Вキ
ng update @angular/cli@7 --migrate-only --from=6.0.0
ng update @angular/core@7 --migrate-only --from=6.0.0
G
ng update @angular/cli@7 --migrate-only --from=6.0.0
ng update @angular/core@7 --migrate-only --from=6.0.0
В
Вキ
G
Invalid rule result: null.
G
G
G
Вキ
G
VK
Вキ
AT
V
public uploadImage(image: File): Observable<any> {Теперь вроде отрабатывает, но файл по-прежнему null
const formData = new FormData();
formData.append('image', image);
const headers = new HttpHeaders({'Content-Type': 'multipart/form-data; charset=utf-8; boundary=' + Math.random().toString().substr(2)});
return this.http.post(`${environment.apiUrl}/api/users/avatar`, formData, {
headers,
responseType: 'text'
});
}
ЭП
public uploadImage(image: File): Observable<any> {Теперь вроде отрабатывает, но файл по-прежнему null
const formData = new FormData();
formData.append('image', image);
const headers = new HttpHeaders({'Content-Type': 'multipart/form-data; charset=utf-8; boundary=' + Math.random().toString().substr(2)});
return this.http.post(`${environment.apiUrl}/api/users/avatar`, formData, {
headers,
responseType: 'text'
});
}
V
ЭП