Skip to content

Commit 445b307

Browse files
authored
Update sts-post.html
1 parent bcb7516 commit 445b307

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/sts-post.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ <h1>Ajax Post 上传</h1>
8080

8181
// 上传文件
8282
var uploadFile = function (file, callback) {
83-
var Key = file.name;
83+
var Key = 'dir/' + file.name; // 这里指定上传路径
8484

8585
getAuthorization({Method: 'POST', Key: ''}, function (err, info) {
8686
var auth = info.Authorization;
@@ -125,4 +125,4 @@ <h1>Ajax Post 上传</h1>
125125
</script>
126126

127127
</body>
128-
</html>
128+
</html>

0 commit comments

Comments
 (0)