8
n8n 中文网amn8n.com

简单文件上传

中级

这是一个IT Ops领域的自动化工作流,包含 10 个节点。主要使用 Wait, Airtop, ManualTrigger 等节点。 自动化截图上传到Postimages.org:Airtop浏览器自动化

前置要求
  • 无特殊前置要求,导入即可使用

分类

工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "ZLSSXI155yu5zYsS",
  "meta": {
    "instanceId": "28a947b92b197fc2524eaba16e57560338657b2b0b5796300b2f1cedc1d0d355",
    "templateCredsSetupCompleted": true
  },
  "name": "简单文件上传",
  "tags": [],
  "nodes": [
    {
      "id": "982d8d40-708e-4312-91ce-d1f40cb765ba",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        60
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "e291766a-0d52-4e13-b0e5-048cb2731687",
      "name": "会话",
      "type": "n8n-nodes-base.airtop",
      "position": [
        220,
        60
      ],
      "parameters": {
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "71bf9ce1-f079-486a-9e94-93e53de4a0ec",
      "name": "窗口",
      "type": "n8n-nodes-base.airtop",
      "position": [
        440,
        -40
      ],
      "parameters": {
        "url": "https://postimages.org/",
        "resource": "window",
        "additionalFields": {}
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "719d6f46-cfa8-4b68-a7c3-a26a25e74783",
      "name": "上传截图",
      "type": "n8n-nodes-base.airtop",
      "position": [
        880,
        -40
      ],
      "parameters": {
        "source": "binary",
        "fileName": "screenshot.jpg",
        "fileType": "screenshot",
        "resource": "file",
        "operation": "upload",
        "elementDescription": "Upload button \"Choose images\""
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "676f52e1-c605-4d72-a676-5dd9b332910b",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1260,
        -200
      ],
      "parameters": {
        "color": 7,
        "width": 220,
        "height": 320,
        "content": "### 验证"
      },
      "typeVersion": 1
    },
    {
      "id": "1b3429ec-3d61-47c4-be66-50eb6e18970b",
      "name": "等待 5 秒",
      "type": "n8n-nodes-base.wait",
      "position": [
        1100,
        -40
      ],
      "webhookId": "34e4acb6-b47a-4d00-a551-279c77d88ee5",
      "parameters": {},
      "typeVersion": 1.1
    },
    {
      "id": "52b48e98-0574-4ec0-88c3-cca3f7f8ea99",
      "name": "截取屏幕截图",
      "type": "n8n-nodes-base.airtop",
      "position": [
        660,
        -40
      ],
      "parameters": {
        "resource": "window",
        "operation": "takeScreenshot",
        "outputImageAsBinary": true
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "91fff060-edee-4d30-b287-ff4f7631caf3",
      "name": "终止",
      "type": "n8n-nodes-base.airtop",
      "position": [
        440,
        160
      ],
      "parameters": {
        "operation": "terminate"
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "ba9c05fb-eded-4c04-a525-c3cf17644754",
      "name": "上传后截图",
      "type": "n8n-nodes-base.airtop",
      "position": [
        1320,
        -40
      ],
      "parameters": {
        "resource": "window",
        "operation": "takeScreenshot",
        "outputImageAsBinary": true
      },
      "credentials": {
        "airtopApi": {
          "id": "Yi4YPNnovLVUjFn5",
          "name": "Airtop Official Org"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "92965720-b24d-4f74-80c3-726592fdd6f9",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -700,
        -320
      ],
      "parameters": {
        "color": 5,
        "width": 640,
        "height": 1100,
        "content": "自述文件"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "b8bec902-dea8-463f-8ffa-28682eceed01",
  "connections": {
    "Window": {
      "main": [
        [
          {
            "node": "Take screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Session": {
      "main": [
        [
          {
            "node": "Window",
            "type": "main",
            "index": 0
          },
          {
            "node": "Terminate",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Wait 5 sec": {
      "main": [
        [
          {
            "node": "Post-upload screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Take screenshot": {
      "main": [
        [
          {
            "node": "Upload screenshot",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Upload screenshot": {
      "main": [
        [
          {
            "node": "Wait 5 sec",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking ‘Execute workflow’": {
      "main": [
        [
          {
            "node": "Session",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - IT 运维

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量10
分类1
节点类型4
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

作者

Airtop provides an intelligent browser automation API for AI agents, enabling seamless web interaction, including login, navigation, and data extraction from any site, even those with complex authentication - all with natural language instructions.In simple terms, we allow you to automate anything humans can do online, on any site with just words

外部链接
在 n8n.io 查看

分享此工作流