Multipart / form-data upload to BuildShip API to another API

is this still true (see screenshot)? im trying to post to buildship api that will post to another api to upload.

reference post: https://discordapp.com/channels/853498675484819476/1199262627109556255/1199337633592123405

buildship workflow:
1) Rest API File Upload
2) API Call Post
3) Return API Call

im getting a response but no file upload:
{
    "status": 200,
    "data": {
        "numAdded": 0,
        "addedDocs": []
    }
}

when using postman directly to api (not buildship):
{
    "numAdded": 1,
    "addedDocs": [
        {
            "pageContent": "example text",
            "metadata": {
                "source": "blob",
                "blobType": "",
                "loc": {
                    "lines": {
                        "from": 1,
                        "to": 32
                    }
                },
                "filename": "file.txt",
                "filetype": "text"
            }
        }
    ]
}
image.png
Solution
Hi @rhokstar, Multipart file upload is now supported via File Upload Trigger - https://docs.buildship.com/trigger-nodes/file-upload
The Rest API File Upload Trigger is designed to handle incoming HTTP requests with multipart/form-data content type, which is commonly used for file uploads.
Was this page helpful?