There are several examples around the forum.
You need to be searching for the likes of post image endpoint
Here is a post that (amongst other things) posts an image from front end (browser) to back end (node-red) : HTTP endpoint for image payloads - #4 by Steve-Mcl