首页>代码>spring boot+webuploader实现大文件分片上传实例>/uploadfile/src/main/java/com/main/uploadfile/controller/request/MultipartFileParam.java
package com.main.uploadfile.controller.request; import org.springframework.web.multipart.MultipartFile; public class MultipartFileParam { //任务ID private String id; //总分片数量 private int chunks; //当前为第几块分片 private int chunk; //当前分片大小 private long size = 0L; //文件数据 private MultipartFile file; //文件名称 private String name; public String getId() { return id; } public void setId(String id) { this.id = id; } public int getChunks() { return chunks; } public void setChunks(int chunks) { this.chunks = chunks; } public int getChunk() { return chunk; } public void setChunk(int chunk) { this.chunk = chunk; } public long getSize() { return size; } public void setSize(long size) { this.size = size; } public MultipartFile getFile() { return file; } public void setFile(MultipartFile file) { this.file = file; } public String getName() { return name; } public void setName(String name) { this.name = name; } }
最近下载更多