Skip to content

Commit

Permalink
Merge pull request #40 from OVINC-CN/feat_put_obj
Browse files Browse the repository at this point in the history
feat(cos): change upload method
  • Loading branch information
OrenZhang authored Jan 6, 2025
2 parents 1a91861 + 2250f3b commit 1fa524c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/EditDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ const uploadHeaderImg = (option) => {
(res) => {
const credentials = res.data;
const cos = loadCos(credentials);
cos.uploadFile({
cos.putObject({
Bucket: credentials.cos_bucket,
Region: credentials.cos_region,
Key: credentials.key,
Expand Down Expand Up @@ -193,7 +193,7 @@ const handleFileUpload = (editor, files) => {
(res) => {
const credentials = res.data;
const cos = loadCos(credentials);
cos.uploadFile({
cos.putObject({
Bucket: credentials.cos_bucket,
Region: credentials.cos_region,
Key: credentials.key,
Expand Down

0 comments on commit 1fa524c

Please sign in to comment.