Skip to content
Advertisement

How can I bring a HTML Image to the backend?

I have a middleware:

JavaScript

which logs me (image):

JavaScript

my API-Call in the backend looks like:

JavaScript

it logs me:

JavaScript

Advertisement

Answer

First of all, you are doing a GET request. You can’t post data to a /GET endpoint. You need a /POST.

Secondly, req.query is an object of key-value pairs of query parameters, which in your case is rightfully empty. So I don’t understand, what is your exact question?

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement