Skip to content

Commit a85e6c4

Browse files
committed
修改 post demo
1 parent fcd6f0a commit a85e6c4

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

demo/sts-form.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ <h1>Form 表单简单上传(兼容 IE8)</h1>
1616
<input id="success_action_redirect" name="success_action_redirect" type="hidden" value="">
1717
<input id="key" name="key" type="hidden" value="">
1818
<input id="Signature" name="Signature" type="hidden" value="">
19+
<input name="Content-Type" type="hidden" value="">
1920
<input id="x-cos-security-token" name="x-cos-security-token" type="hidden" value="">
2021
<input id="fileSelector" name="file" type="file">
2122
<input id="submitBtn" type="button" value="提交">

demo/sts-post.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ <h1>Ajax Post 上传</h1>
6969
var fd = new FormData();
7070
fd.append('key', Key);
7171
fd.append('Signature', auth);
72+
fd.append('Content-Type', '');
7273
XCosSecurityToken && fd.append('x-cos-security-token', XCosSecurityToken);
7374
fd.append('file', file);
7475
var url = prefix;

0 commit comments

Comments
 (0)