Alternative php: // input to multipart / form-data

According to the PHP manual php://input not available with multipart/form-data . Is there an alternative to this? ( http://www.php.net/manual/wrappers.php )

code:

 parse_str(file_get_contents('php://input'), $put_vars); 

It does not work because my Restful gets multipart/form-data , which contains $_FILES['image'] .

+4
source share

Source: https://habr.com/ru/post/1481796/


All Articles