Hi to all,
I’m trying to write on my FTP but I have an error.
I want to generate .html + image pages and save them on my FTP.
{
"name": "CustomImage",
"nodes": [
{
"parameters": {},
"name": "Start",
"type": "n8n-nodes-base.start",
"typeVersion": 1,
"position": [
250,
300
]
},
{
"parameters": {
"path": "person",
"options": {}
},
"name": "Webhook",
"type": "n8n-nodes-base.webhook",
"typeVersion": 1,
"position": [
400,
300
],
"webhookId": "c5282386-ef74-4ddb-aa4b-bca7f3b0ca00"
},
{
"parameters": {
"operation": "text",
"text": "=This is n8n {{$node[\"Webhook\"].json[\"query\"][\"lastname\"]}}",
"fontSize": 100,
"positionX": 300,
"positionY": 500,
"options": {}
},
"name": "Edit Image",
"type": "n8n-nodes-base.editImage",
"position": [
1360,
130
],
"typeVersion": 1
},
{
"parameters": {
"url": "https://docs.n8n.io/assets/img/final-workflow.f380b957.png",
"responseFormat": "file",
"options": {}
},
"name": "HTTP Request",
"type": "n8n-nodes-base.httpRequest",
"position": [
1180,
160
],
"typeVersion": 1
},
{
"parameters": {
"functionCode": "return item.query;\n"
},
"name": "FunctionItem",
"type": "n8n-nodes-base.functionItem",
"typeVersion": 1,
"position": [
570,
300
]
},
{
"parameters": {
"url": "https://uclic.fr/tool/template.html",
"responseFormat": "string",
"options": {}
},
"name": "HTTP Request1",
"type": "n8n-nodes-base.httpRequest",
"typeVersion": 1,
"position": [
790,
270
]
},
{
"parameters": {
"functionCode": "item.data = item.data.replace(/{{subject}}/g, $node[\"Webhook\"].data.query.subject);\nitem.data = item.data.replace(/{{redirection}}/g, $node[\"Webhook\"].data.query.redirection);\n\nreturn item;\n"
},
"name": "FunctionItem1",
"type": "n8n-nodes-base.functionItem",
"typeVersion": 1,
"position": [
980,
270
]
},
{
"parameters": {
"operation": "upload",
"path": "/"
},
"name": "FTP",
"type": "n8n-nodes-base.ftp",
"typeVersion": 1,
"position": [
1620,
180
],
"credentials": {
"ftp": "FTP"
}
}
],
"connections": {
"HTTP Request": {
"main": [
[
{
"node": "Edit Image",
"type": "main",
"index": 0
}
]
]
},
"Webhook": {
"main": [
[
{
"node": "FunctionItem",
"type": "main",
"index": 0
}
]
]
},
"FunctionItem": {
"main": [
[
{
"node": "HTTP Request1",
"type": "main",
"index": 0
}
]
]
},
"HTTP Request1": {
"main": [
[
{
"node": "FunctionItem1",
"type": "main",
"index": 0
}
]
]
},
"FunctionItem1": {
"main": [
[
{
"node": "HTTP Request",
"type": "main",
"index": 0
}
]
]
},
"Edit Image": {
"main": [
[
{
"node": "FTP",
"type": "main",
"index": 0
}
]
]
}
},
"active": true,
"settings": {},
"id": "1"
}
Thanks

