From f881cbcb938f26412759744130d532362921f318 Mon Sep 17 00:00:00 2001 From: carsonxu <459452372@qq.com> Date: Wed, 21 Mar 2018 16:14:01 +0800 Subject: [PATCH] Update sts-put.html --- demo/sts-put.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/demo/sts-put.html b/demo/sts-put.html index 9f2071f..f5fc237 100644 --- a/demo/sts-put.html +++ b/demo/sts-put.html @@ -81,7 +81,7 @@

Ajax Put 上传

// 上传文件 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; @@ -121,4 +121,4 @@

Ajax Put 上传

- \ No newline at end of file +