How to upload to cloudflare or wordpress with image generate by dall e 3

Information on your n8n setup

  • n8n version:1.81.4
  • Database (default: SQLite):postgreSQL
  • n8n EXECUTIONS_PROCESS setting (default: own, main):i don’t know
  • Running n8n via (Docker, npm, n8n cloud, desktop app):beazur
  • Operating system:I don’t know

Do you mind pasting that json into the code backticks so the renderer can create a visual from it.

Sorry I’ve never tried to use this feature, thanks for your reply

Ah I see it.

So I can check back tomorrow but I believe that you have to first upload the image to wordpress via their media upload api, then pass that ID to the post for hero image, and/or reference it in the blog itself.

Hello, that’s right, my problem is to make this dall e3 image upload to cloudflare R2 through a node, and then generate a link to WordPress to use.

But if this is a more difficult way to do, is it okay to upload directly to the WordPress media library? Because AI keeps telling me to use Node for media upload, but I can’t find it

Thanks for your reply

I don’t believe n8n has a media node, but you can use the HTTP node and check here for uploading media via POST request:

You should get the media ID back, then you can update the blog post with a parameter of:
featured_media with the media ID as the value.

1 Like

Thank you so much, I’ll give it a try first, after all, I’m a person with absolutely no coding experience :smiley:

I’ll try to see how these files are going to be, and let chatgpt help me complete these 2 nodes :slight_smile:

Thank you

Awesome, let me know how it goes.

I solved the problem, thanks to your help.

1 Like