How to upload generated image to google drive

Describe the problem/error/question:

To me it looks like a very easy task of uploading an image to google drive. I cant upload generated image from OpenAi to Google Drive.

What is the error message (if any)?

This operation expects the node’s input data to contain a binary file ‘data’, but none was found [item 0]

Make sure that the previous node outputs a binary file

Please share your workflow


{“nodes”: [{“parameters”: {“resource”: “image”,“prompt”: “=Generate a single realistic, high-resolution 1080x1080 image variation of the attached product photo. Keep the product as the main focus, but replace the background with a festive Diwali theme. Use warm, vibrant, and professional styling suitable for Etsy and Instagram. Include Diwali elements such as diyas, lights, rangoli, and festive decorations. Avoid clutter, and ensure the product remains clearly visible and stands out.\n\nHere is the image analysis of the uploaded file: \n {{ $(‘Merging OpenAI and Gemini Image analysis’).item.json.output.long_description }}\n\nHere is the uploaded image that you need to use as base and make variation fromit: {{ $(‘Google Drive Trigger’).item.json.webContentLink }}”,“options”: {“dalleQuality”: “standard”,“size”: “1024x1024”,“style”: “natural”,“returnImageUrls”: false}},“type”: “/n8n-nodes-langchain.openAi”,“typeVersion”: 1.8,“position”: [2208,608],“id”: “4dfb5000-f670-4305-8a50-f148244c07ec”,“name”: “Generate an image2”,“alwaysOutputData”: true,“credentials”: {“openAiApi”: {“id”: “3Cdx5cR1vO6h6WCE”,“name”: “OpenAi account 3”}}},{“parameters”: {“name”: “test.png”,“driveId”: {“__rl”: true,“mode”: “list”,“value”: “My Drive”},“folderId”: {“__rl”: true,“value”: “17pp26kJPCEfJiLtE1VNQcmUXhf7OA-T4”,“mode”: “list”,“cachedResultName”: “meta data”,“cachedResultUrl”: “https://drive.google.com/drive/folders/17pp26kJPCEfJiLtE1VNQcmUXhf7OA-T4”},“options”: {}},“type”: “n8n-nodes-base.googleDrive”,“typeVersion”: 3,“position”: [2544,608],“id”: “6df34c10-0e7a-4f45-8cf5-4bb17428188b”,“name”: “Upload file”,“credentials”: {“googleDriveOAuth2Api”: {“id”: “V6bcqetughcUc03L”,“name”: “Google Drive account 3”}}}],“connections”: {“Generate an image2”: {“main”: [[{“node”: “Upload file”,“type”: “main”,“index”: 0}]]},“Upload file”: {“main”: []}},“pinData”: {},“meta”: {“templateCredsSetupCompleted”: true,“instanceId”: “cf555e93a8217d1b2c111755de56b0516bcd9783be52460ff22ae9998c67431d”}}

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey @Ripen_Leaf hope all is well.

Does this work for you, try to run it:

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.