How to handle files?
-
Hi there,
I am currently developing a form where you can upload a document that should be sent to an api via JSON.My JSON looks like this:
{
“formData”: {
“file”: “[your-file]”,
}
}Unfortunately, formData.file only contains the file name:
{
“formData”: {
“file”: “testfile.txt”,
}
}What is the best practice to send files to an API?
Cheers,
Chris
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to handle files?’ is closed to new replies.