Upload multiple pictures and text messages on the page, and set Content-Tyep to text/plain. How does the back end receive this data?

clipboard.png

The

front end uploads data through ajax without using a form.

the front-end page uploads multiple pictures and text messages, and sets content-type to text/plain. How does the backend receive the data in this way? Normal multi-part display should not be set to Multipart/form-data?

Mar.14,2021

the backend accepts body data directly:
if it is JAVA, it is:

$body = file_get_contents("php://input");
Menu