根据 PHP 手册php://input不适用于multipart/form-data. 有替代方案吗?(http://www.php.net/manual/wrappers.php)
代码:
parse_str(file_get_contents('php://input'), $put_vars);
它不起作用,因为我的 Restful 接收multipart/form-data到包含$_FILES['image'].
根据 PHP 手册php://input不适用于multipart/form-data. 有替代方案吗?(http://www.php.net/manual/wrappers.php)
代码:
parse_str(file_get_contents('php://input'), $put_vars);
它不起作用,因为我的 Restful 接收multipart/form-data到包含$_FILES['image'].