File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ <h1>Form 表单简单上传(兼容 IE8)</h1>
16
16
< input id ="success_action_redirect " name ="success_action_redirect " type ="hidden " value ="">
17
17
< input id ="key " name ="key " type ="hidden " value ="">
18
18
< input id ="Signature " name ="Signature " type ="hidden " value ="">
19
+ < input name ="Content-Type " type ="hidden " value ="">
19
20
< input id ="x-cos-security-token " name ="x-cos-security-token " type ="hidden " value ="">
20
21
< input id ="fileSelector " name ="file " type ="file ">
21
22
< input id ="submitBtn " type ="button " value ="提交 ">
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ <h1>Ajax Post 上传</h1>
69
69
var fd = new FormData ( ) ;
70
70
fd . append ( 'key' , Key ) ;
71
71
fd . append ( 'Signature' , auth ) ;
72
+ fd . append ( 'Content-Type' , '' ) ;
72
73
XCosSecurityToken && fd . append ( 'x-cos-security-token' , XCosSecurityToken ) ;
73
74
fd . append ( 'file' , file ) ;
74
75
var url = prefix ;
You can’t perform that action at this time.
0 commit comments