Skip to content

Commit

Permalink
u
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwujing committed Mar 13, 2024
1 parent 9d5e1b5 commit fbf3ce7
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ public String getName() {

@PostMapping("/upload")
public String upload(@RequestParam("file") MultipartFile file) throws Exception {
CosBootUtil.setAccessKeyId("AKIDcBkIvqlofcvJHHCEMSVXdaMzTCDFwc8U");
CosBootUtil.setAccessKeySecret("IOJBtStAIoRwLDvSq5LctFA0iHfstkR5");
CosBootUtil.setBucketName("test-1307462009");
CosBootUtil.setRegion("ap-guangzhou");
CosBootUtil.setAccessKeyId("xxx");
CosBootUtil.setAccessKeySecret("xx");
CosBootUtil.setBucketName("xxx");
CosBootUtil.setRegion("xxx");
CosBootUtil.setUrl("202403/");
String url = CosBootUtil.upload(file, null);
return url;
Expand Down

0 comments on commit fbf3ce7

Please sign in to comment.