|
|
@@ -700,7 +700,7 @@ public class PublicController extends CertifyApiController {
|
|
|
* @param delete 是否删除
|
|
|
*/
|
|
|
@RequestMapping("/download")
|
|
|
- public void fileDownload(String fileName, Boolean delete,String aftName,
|
|
|
+ public void fileDownload(String fileName, Boolean delete,String attName,
|
|
|
HttpServletResponse response, HttpServletRequest request)
|
|
|
{
|
|
|
try
|
|
|
@@ -713,7 +713,7 @@ public class PublicController extends CertifyApiController {
|
|
|
String filePath = uploadPath +"/"+ fileName;
|
|
|
|
|
|
response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);
|
|
|
- FileUtils.setAttachmentResponseHeader(response, realFileName,aftName);
|
|
|
+ FileUtils.setAttachmentResponseHeader(response, realFileName,attName);
|
|
|
FileUtils.writeBytes(filePath, response.getOutputStream());
|
|
|
if(delete==null)delete=true;
|
|
|
if (delete)
|