Home > Backend Development > PHP Tutorial > php服务器端怎么获得multipart/form-data post的json数据

php服务器端怎么获得multipart/form-data post的json数据

WBOY
Release: 2016-06-13 12:04:24
Original
2388 people have browsed it

php服务器端如何获得multipart/form-data post的json数据
客户端是用java post一个multipart/form-data请求,包含json参数数组,和一个上传的文件。
请问在php服务器端如何解析/获取json数据?
------解决方案--------------------
file_put_contents('test.txt', print_r($_POST, 1));
看看 test.txt 中有什么

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template