Type error on multipart/form-data
#1877
Answered
by
szmarczak
maasencioh
asked this question in
Q&A
-
Hello, I'm running the following code using formdata-node v4.2.3 and got v12.0.0-beta.4 import got from 'got';
import { FormData, File } from 'formdata-node';
const formData = new FormData();
const file = new File(['string'], 'test.jdx');
formData.set('file', file);
formData.set('key', 'test');
// type error
await got.post(this.envs.uploadEndpoint, { body: formData }); I have the following error, and I don't know if is the version of one of the libraries or if I'm missing something
|
Beta Was this translation helpful? Give feedback.
Answered by
szmarczak
Sep 29, 2021
Replies: 2 comments 3 replies
-
/cc @octet-stream |
Beta Was this translation helpful? Give feedback.
0 replies
-
Actually |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
szmarczak
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Actually
FormData
support isn't yet released.