InputStream inputStream = new URL("下載鏈接地址").openStream();
MultipartFile file = new MockMultipartFile("file","上傳文件名稱”, ContentType.APPLICATION_OCTET_STREAM.toString(), inputStream);
//上傳至OSS
Result response = UploadUtils.uploadZipFile(file,"xxx","xxx","historyVideo", 36500,true);
注意:UploadUtils是自己封裝的OSS工具類