How to upload images to a POST request

You could encode the file to base64 and send it in the curl command that way.

https://base64.guru/converter/encode/file