BuildShipBBuildShip
Powered by
rhokstarR
BuildShip•2y ago•
3 replies
rhokstar

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": []
    }
}
{
    "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"
            }
        }
    ]
}
{
    "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
Rest API File Upload – BuildShip
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.
Jump to solution
BuildShip banner
BuildShipJoin
Join founders, builders, devs using Low-code / No-code to create backend, APIs, scheduled Jobs, automation, AI workflows
7,971Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Buildship Upload File Error
REIREIREIREIRIERIERIRREIREIREIREIRIERIERI / ❓・buildship-help
2y ago
Buildship Base64 upload error
CryptodeevaCCryptodeeva / ❓・buildship-help
3y ago
How to upload files to BuildShip database
BrianBBrian / ❓・buildship-help
12mo ago
Buildship --> VoiceFlow API
ZuuZZuu / ❓・buildship-help
3y ago