Replies: 2 comments
-
form.append(
'file',
buffer,
{
filename: 'test.png',
},
}), |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sindresorhus
-
Wow! I didn't understand that these Thank you so much! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What would you like to discuss?
I am trying to post a file to Slack API
I have a working example with the deprecated
request
package:I am trying to do the same with
got
andform-data
but it doesn't work, I have ano_file_data
error.One of my tries:
Maybe this is more related to
form-data
?Any help would be really appreciated. Thank you 🙏
Checklist
Beta Was this translation helpful? Give feedback.
All reactions