Hi,
My situation
I am working on a custom application to upload image files to an api/service.
the images would likely be fetched from the Google Drive > Download file module and then uploaded with the custom module.
My issue
I am having trouble aligning the two.
the input data coming being given to my custom module looks like this:
[
{
"url": "/api-endpoint",
"api_key": "a_key_here",
"fileData": "IMTBuffer(289711,binary,3ebb4a3bcdaf537549):ffd8ffe00000000000000"
}
]
and my custom application’s module json looks like this:
{
"url": "https://api-url{{parameters.url}}",
"method": "POST",
"headers": {
"X-Api-Key": "{{parameters.api_key}}"
},
"body": {
"fields": [
{
"name": "image",
"value": "{{parameters.fileData}}"
}
]
},
"response": {
"data": "{{body}}"
}
}
my mappable params for the file data looks like this:
{
"name": "fileData",
"type": "buffer",
"label": "File Data",
"required": true,
"semantic": "file:data"
}
Any suggestions? Thanks!
