mirror of
https://github.com/thinkjs/thinkjs.git
synced 2026-01-25 14:42:47 +00:00
修正文件上传的bug
This commit is contained in:
parent
cf62084c01
commit
700234fe2d
@ -118,7 +118,7 @@ module.exports = Class(function(){
|
||||
}
|
||||
//上传的数据中是否含有文件的检测正则
|
||||
var multiReg = /^multipart\/(form-data|related);\s*boundary=(?:"([^"]+)"|([^;]+))$/i;
|
||||
if (multiReg.test(this.http.contentType)) {
|
||||
if (multiReg.test(this.req.headers['content-type'])) {
|
||||
return this._filePost();
|
||||
}else{
|
||||
return this._commonPost();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user