S30bject s30bject = smsFileUploadAndDown.getobjectRequest(filePath);String downloadName = StringUtils.substringAfterLast(filePath, separator: "/");response.setContentType(MediaType.APPLICATION_OCTET_STREAM_VALUE);FileUtils.setAttachmentResponseHeader(response,downloadName);response.setHeader( name: "Content-disposition", valwe: "attachment;filename="+ URLEncoder.encode(downloadame, enc "UTF-8"));response,addHeader(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS, value: "Content-Disposition");FileCopyutils.copy(s30bject.getbjectContent(), response.getoutputStream());
标签:filePath,s3,downloadName,Content,s30bject,亚马孙,response,browser
From: https://www.cnblogs.com/codeLearn/p/17862379.html