类 LocalFileStorageServiceImpl
java.lang.Object
com.diboot.file.service.impl.LocalFileStorageServiceImpl
- 所有已实现的接口:
FileStorageService
本地存储
- 版本:
- : v2.0
- 作者:
- : uu
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明boolean删除文件voiddownload(FileRecord uploadFile, jakarta.servlet.http.HttpServletResponse response) 获取文件获取文件save(InputStream inputStream, String fileName, long size) 上传文件上传文件save(org.springframework.web.multipart.MultipartFile file) 上传文件从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 com.diboot.file.service.FileStorageService
buildAccessUrl
-
构造器详细资料
-
LocalFileStorageServiceImpl
public LocalFileStorageServiceImpl()
-
-
方法详细资料
-
save
从接口复制的说明:FileStorageService上传文件- 指定者:
save在接口中FileStorageService- 返回:
- 抛出:
Exception
-
save
从接口复制的说明:FileStorageService上传文件- 指定者:
save在接口中FileStorageService- 返回:
- 抛出:
Exception
-
save
从接口复制的说明:FileStorageService上传文件- 指定者:
save在接口中FileStorageService- 参数:
diskFilePath- 磁盘中已存在的临时文件fileName- 文件名- 返回:
- 抛出:
Exception
-
getFile
从接口复制的说明:FileStorageService获取文件- 指定者:
getFile在接口中FileStorageService- 参数:
filePath- 文件路径- 返回:
- 抛出:
Exception
-
download
public void download(FileRecord uploadFile, jakarta.servlet.http.HttpServletResponse response) throws Exception 从接口复制的说明:FileStorageService获取文件- 指定者:
download在接口中FileStorageService- 抛出:
Exception
-
delete
从接口复制的说明:FileStorageService删除文件- 指定者:
delete在接口中FileStorageService- 参数:
filePath- 文件路径- 返回:
- 是否删除成功
-