Skip to content

Commit

Permalink
[DEV:文件服务] 上线测试服务器1<Auto> -e:test -m:file-service -type:single -v:1.4…
Browse files Browse the repository at this point in the history
… -rp:8089 -de:<-e ACTIVE=dev -e UNIQUE_ID=0 -e SERVER_PORT=8089>
  • Loading branch information
welsir committed Dec 23, 2023
1 parent 7f8bcce commit 55f1d03
Showing 1 changed file with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,12 @@
import com.example.filesystem.util.ConcurrentUtil;
import org.apache.tomcat.jni.OS;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.concurrent.Callable;
Expand Down Expand Up @@ -53,10 +51,10 @@ public Result<?> download(@Validated DownloadFileVO commonFileVO){
}

@PostMapping("/upload/list")
public Result<?> upload(MultipartFile[] files,String[] md5List,String[] pathList,String bucket){
public Result<?> upload(@RequestParam("file") MultipartFile[] files, String[] md5List, String[] pathList, String bucket){
ArrayList<UploadFileVO> res = new ArrayList<>();
OSSFileVO ossFileVO = new OSSFileVO();
logger.info("%s,%s,%s,%s",files,md5List,pathList,bucket);
logger.info("%s,%s,%s,%s",files, Arrays.toString(md5List), Arrays.toString(pathList),bucket);
ossFileVO.setFile(files[0]);
ossFileVO.setPath(pathList[0]);
ossFileVO.setMd5(md5List[0]);
Expand Down

0 comments on commit 55f1d03

Please sign in to comment.