Good afternoon, there was an interesting problem.
It is given: there is YII2 and there is a rest api interface. We send a multipart / form-data method post to url and then miracles begin.
As soon as I remove the boundary, everything starts working. However, I want to force it
Content-Type: multipart / form-data; boundary = X_PAW_BOUNDARY
Moreover, even the standard output of php content falls off.
$rawPost = file_get_contents('php://input'); var_dump($rawPost); die(); Standard operation with \ YII :: $ app-> request-> getRawBody () is also empty ..
Tell me what am I doing wrong? Thank.
