UpYun upyun = new UpYun(upYunConfig.getBucketName(), upYunConfig.getUsername(), upYunConfig.getPassword());
upyun.setTimeout(30);
upyun.setDebug(true);
String fileName = String.format("%s.%s", UUID.randomUUID().toString(), multipartFile.getOriginalFilename().substring(multipartFile.getOriginalFilename().lastIndexOf(".") + 1));
upyun.writeFile(fileName, multipartFile.getInputStream(), false, new HashMap<>());直接调用sdk 报错
添加回答
举报
0/150
提交
取消