mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2025-10-26 18:59:13 +08:00
支持http/https文件流作为预览源url
This commit is contained in:
@@ -28,8 +28,7 @@ public class CompressFilePreviewImpl implements FilePreview{
|
||||
ZipReader zipReader;
|
||||
|
||||
@Override
|
||||
public String filePreviewHandle(String url, Model model) {
|
||||
FileAttribute fileAttribute=fileUtils.getFileAttribute(url);
|
||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||
String fileName=fileAttribute.getName();
|
||||
String decodedUrl=fileAttribute.getDecodedUrl();
|
||||
String suffix=fileAttribute.getSuffix();
|
||||
|
||||
Reference in New Issue
Block a user