跳至主要內容
文件上传之Content-Type

1、Content-Type介绍

Content-Type是指http/https发送信息至服务器时的内容编码类型,contentType用于表明发送数据流的类型,服务器根据编码类型使用特定的解析方式,获取数据流中的数据。

在网络请求中,常见的Content-Type有:

1.1、常见的页面资源类型

text/html,text/plain,text/css,text/javascript,image/jpeg,image/png,image/gif等;

常见的页面提交或上传文件类型	

application/x-www-form-urlencoded,multipart/form-data,application/json,application/xml等。

zheng大约 2 分钟java基础文件上传