一般是通过表单的post 上传文件的,可以考虑参考:thinkphp 的使用http://document.thinkphp.cn/manual_3_2.html#template_layout
post就是 http/tcp