Asked by Ryan Huff on Oct 18, 2024
Ryan Huff was encountering 400 errors when trying to upload a zip file using the CMS source code upload API via JS/TS and requested a working example.
Answered by Ryan Huff
Aldo Carrillo provided a Node.js code example using `axios` and `form-data` for the file upload. Ryan Huff identified his error based on the example: he was incorrectly passing a Buffer instead of the file stream itself to FormData.