I am getting error while uploading WebP images to wordpress via API

I generate image via stability and I am able to upload to wordpress if the image type is jpeg or png but when I change to WEBP format I am getting error.

ERROR MESSAGE

image

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Your request is invalid or could not be processed by the service

Not Acceptable!Not Acceptable!

An appropriate representation of the requested resource could not be found on this server. This error was generated by Mod_Security.

I believe it is webp might be restricted at Wordpress level, but I am not sure how to resolve it.

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:**1.72.1
  • Database (default: SQLite): :none
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Local instance / Docker
  • Operating system: Windows 10

The problem is resolved by using content-type as “image/png” in addtion the content-disposition

This was suggested in OpenAI - How to upload multiple images to WordPress after compressing them - #9 by martinhache, Thanks anyway this can be closed