Skip to content

Commit 374820a

Browse files
committed
Merge remote-tracking branch 'origin/master'
# Conflicts: # demo/simple-form.html # demo/simple-put.html # demo/sts-form.html # demo/sts-post.html # demo/sts-put.html
2 parents 0fa7b69 + 7dd80af commit 374820a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/sts-post/simple-post.html

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

5858
// 上传文件
5959
var uploadFile = function (file, callback) {
60-
var Key = file.name;
60+
var Key = 'dir/' + file.name; // 这里指定上传路径
6161

6262
getAuthorization({Method: 'POST', Key: Key}, function (err, info) {
6363
var auth = info.Authorization;
@@ -104,4 +104,4 @@ <h1>Ajax Post 上传</h1>
104104
</script>
105105

106106
</body>
107-
</html>
107+
</html>

0 commit comments

Comments
 (0)