mirror of
https://github.com/zfile-dev/zfile.git
synced 2025-04-19 05:34:52 +00:00
支持在线浏览图片, 文本, 视频, 使用 HistoryAPI 页面不刷新优化用户体验.
This commit is contained in:
@@ -26,7 +26,7 @@ public class LocalController {
|
||||
@GetMapping("/local-download")
|
||||
@ResponseBody
|
||||
public ResponseEntity<FileSystemResource> downAttachment(String fileName) throws IOException {
|
||||
return export(new File(StringUtils.concatDomainAndPath(localService.getFilePath(), URLUtil.decode(fileName))));
|
||||
return export(new File(StringUtils.concatPath(localService.getFilePath(), URLUtil.decode(fileName))));
|
||||
}
|
||||
|
||||
private ResponseEntity<FileSystemResource> export(File file) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user