mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-04-18 06:13:41 +00:00
5.0版本 发布 重构下载方法 修复pdf 占用demo文件夹
This commit is contained in:
@@ -60,6 +60,9 @@ public class PdfFilePreviewImpl implements FilePreview {
|
||||
String originFilePath; //原始文件路径
|
||||
String cacheName = pdfName+officePreviewType;
|
||||
String filePassword = fileAttribute.getFilePassword(); // 获取密码
|
||||
if("demo.pdf".equals(pdfName)){
|
||||
return otherFilePreview.notSupportedFile(model, fileAttribute, "不能使用该文件名,请更换其他文件名在进行转换");
|
||||
}
|
||||
// 查询转换状态
|
||||
String statusResult = officefilepreviewimpl.checkAndHandleConvertStatus(model, pdfName, cacheName, fileAttribute);
|
||||
if (statusResult != null) {
|
||||
|
||||
Reference in New Issue
Block a user