How to upload a Media File to Wordpress?

It’s my first experience building a workflow with n8n. I had a pretty smooth ride until integrating with WordPress. I can’t find an option to upload a media file and am struggling a lot with doing it via code. did someone ever implement such functionality and can provide a working example?

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hi @yoventures, welcome to the community!

n8n’s WordPress node is indeed missing this functionality. But luckily you can still use the HTTP Request node to upload your files to WordPress. Check out this example workflow (you can of course omit the last step if you don’t want to use the file as the featured image):