mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
. Fix for AWC-564
- Issue where non-ASCII characters not correctly handled for a filename when the file is download as an "attachment" - This affects the download file link on the Checkout and Edit pages . New icons and UI design in grey status area for navigation in the Space, Document and Forums details pages . A few UI fix up and improvements git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2497 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -172,11 +172,11 @@ public class DownloadContentServlet extends BaseServlet
|
||||
if (attachment == true)
|
||||
{
|
||||
// set header based on filename - will force a Save As from the browse if it doesn't recognise it
|
||||
// this is better than the default response of the browse trying to display the contents!
|
||||
// TODO: make this configurable - and check it does not prevent streaming of large files
|
||||
res.setHeader("Content-Disposition", "attachment;filename=\"" + URLDecoder.decode(filename, "UTF-8") + '"');
|
||||
// this is better than the default response of the browser trying to display the contents
|
||||
String encname = filename.replace('%', '=');
|
||||
res.setHeader("Content-Disposition", "attachment;filename=\"=?ISO-8859-1?Q?" + encname + "?=\"");
|
||||
}
|
||||
|
||||
|
||||
// get the content reader
|
||||
ContentReader reader = contentService.getReader(nodeRef, propertyQName);
|
||||
// ensure that it is safe to use
|
||||
|
Reference in New Issue
Block a user