Skip to content

Commit

Permalink
Update simple-put.html
Browse files Browse the repository at this point in the history
  • Loading branch information
carsonxu authored Mar 21, 2018
1 parent e09852a commit 4b251bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions demo/simple-put.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,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, auth) {
var url = prefix + Key;
var xhr = new XMLHttpRequest();
Expand Down Expand Up @@ -98,4 +98,4 @@ <h1>Ajax Put 上传</h1>
</script>

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

0 comments on commit 4b251bb

Please sign in to comment.