Commit 5eddc002 authored by 廖旭伟's avatar 廖旭伟

下载bug修改

parent 1eb64760
...@@ -90,7 +90,7 @@ public class UploadServiceImpl implements UploadService { ...@@ -90,7 +90,7 @@ public class UploadServiceImpl implements UploadService {
@Override @Override
public void fileDownload(String fileName, Boolean delete, HttpServletResponse response) { public void fileDownload(String fileName, Boolean delete, HttpServletResponse response) {
String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1); String realFileName = System.currentTimeMillis() + fileName.substring(fileName.indexOf("_") + 1);
String filePath = getFilePath(this.filePath) + fileName; String filePath = getFilePath(fileName);
try { try {
response.setContentType(MediaType.IMAGE_JPEG_VALUE); response.setContentType(MediaType.IMAGE_JPEG_VALUE);
setAttachmentResponseHeader(response, realFileName); setAttachmentResponseHeader(response, realFileName);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment