You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Angular app that POST a manually build FormData to a HttpNode in NodeRed with a file as Base64 encoded. Something like this.
uploadImaged(dadosImaged: UploadImaged): Observable<HttpEvent<Imaged>> {
const url = `${environment.NODE_RED_URL}/uploadImaged`;
let body = new FormData();
body.set('codTipoDoc', `${dadosImaged.codTipoDoc}`);
body.set('descricao', dadosImaged.descricao);
body.set('file', dadosImaged.file);
body.set('filename', dadosImaged.filename);
body.set('indices', JSON.stringify(dadosImaged.indices));
const req = new HttpRequest('POST', url, body, { reportProgress: true });
return this.http.request<any>(req).pipe(catchError(this.errorHandler));
}
What happens?
Until version 0.19.X the PAYLOAD of HttpNode was show as a buffer or a raw string in debug node.
In version 0.20.X when POSTing to HttpNode an exception is raised. TypeError: invalid media type.
Activating the flag Accept file uploads? the payload is parsed but I need the buffer version to make an HttpRequest to another backend.
What are the steps to reproduce?
I have a Angular app that POST a manually build FormData to a HttpNode in NodeRed with a file as Base64 encoded. Something like this.
What happens?
Until version 0.19.X the PAYLOAD of HttpNode was show as a buffer or a raw string in debug node.
In version 0.20.X when POSTing to HttpNode an exception is raised. TypeError: invalid media type.
Activating the flag Accept file uploads? the payload is parsed but I need the buffer version to make an HttpRequest to another backend.
Example:
Evidence Image/imgur
What do you expect to happen?
Payload should be a buffer formdata like in version 0.19
Please tell us about your environment:
0.20.X
8.15.1
6.4.1
Linux Mint
Any
The text was updated successfully, but these errors were encountered: