Skip to content

Commit

Permalink
Update sts-put.html
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu authored Mar 21, 2018
1 parent 445b307 commit f881cbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/sts-put.html
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>Ajax Put 上传</h1>

// 上传文件
var uploadFile = function (file, callback) {
var Key = file.name;
var Key = 'dir/' + file.name; // 这里指定上传路径
getAuthorization({Method: 'PUT', Key: Key}, function (err, info) {
var auth = info.Authorization;
var XCosSecurityToken = info.XCosSecurityToken;
Expand Down Expand Up @@ -121,4 +121,4 @@ <h1>Ajax Put 上传</h1>
</script>

</body>
</html>
</html>

0 comments on commit f881cbc

Please sign in to comment.