Skip to content

Commit

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

// 上传文件
var uploadFile = function (file, callback) {
var Key = file.name;
var Key = 'dir/' + file.name; // 这里指定目录

getAuthorization({Method: 'POST', Key: ''}, function (err, auth) {
var fd = new FormData();
Expand Down Expand Up @@ -104,4 +104,4 @@ <h1>Ajax Post 上传</h1>
</script>

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

0 comments on commit e09852a

Please sign in to comment.