Skip to content

Commit

Permalink
修改 post demo
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu committed Apr 16, 2018
1 parent fcd6f0a commit a85e6c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions demo/sts-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ <h1>Form 表单简单上传(兼容 IE8)</h1>
<input id="success_action_redirect" name="success_action_redirect" type="hidden" value="">
<input id="key" name="key" type="hidden" value="">
<input id="Signature" name="Signature" type="hidden" value="">
<input name="Content-Type" type="hidden" value="">
<input id="x-cos-security-token" name="x-cos-security-token" type="hidden" value="">
<input id="fileSelector" name="file" type="file">
<input id="submitBtn" type="button" value="提交">
Expand Down
1 change: 1 addition & 0 deletions demo/sts-post.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ <h1>Ajax Post 上传</h1>
var fd = new FormData();
fd.append('key', Key);
fd.append('Signature', auth);
fd.append('Content-Type', '');
XCosSecurityToken && fd.append('x-cos-security-token', XCosSecurityToken);
fd.append('file', file);
var url = prefix;
Expand Down

0 comments on commit a85e6c4

Please sign in to comment.