Closed
Description
Link to the documentation page or resource
https://docs.strapi.io/developer-docs/latest/plugins/upload.html#upload-files
Describe the bug
The sample of Node.Js code showed on that page is not working. It's always give you HTTP 400 and this messages "message":"Files are empty".
I spent long hours trying, then I decide to write something similar in Python and that's it, it worked at the first time.
Additional context
No response
Suggested improvements or fixes
I am not sure what is the current bug, it seems that form.append('files', file) is not working, but we need to fix that.
Also, I do believe that an example of code using entity or service API would be a great help. This is really useful when we need do populate a database.
Related issue(s)/PR(s)
No response