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 报错
相关分类