拆分图片处理
This commit is contained in:
+3
@@ -42,6 +42,9 @@ public class SplitFileController {
|
||||
throw new JeroBootException("文件不存在");
|
||||
}
|
||||
int splitIndex = fileUrl.lastIndexOf(File.separator);
|
||||
if(splitIndex == -1){
|
||||
splitIndex = fileUrl.lastIndexOf("/");
|
||||
}
|
||||
String fileName = fileUrl.substring(splitIndex);
|
||||
response.setHeader("Content-Disposition",
|
||||
"attachment; filename=\""+fileName+"\"");
|
||||
|
||||
Reference in New Issue
Block a user