What is multipart/form-data
?
multipart/form-data
is a content type used in HTTP requests for sending binary data like files alongside regular form fields.
For example, submitting the following HTML form:

Can result in the following HTTP request:
POST /submit.php HTTP/1.1
Host: sajad.local:8000
Connection: keep-alive
Content-Length: 417374
Origin: http://sajad.local:8000
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary3hPnbQmTWdhIF3aw
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
------WebKitFormBoundary3hPnbQmTWdhIF3aw
Content-Disposition: form-data; name="name"
Sajad
------WebKitFormBoundary3hPnbQmTWdhIF3aw
Content-Disposition: form-data; name="age"
31
------WebKitFormBoundary3hPnbQmTWdhIF3aw
Content-Disposition: form-data; name="photo"; filename="My picture.png"
Content-Type: image/png
�PNG
IHDR {C� cHRM z&