Commit 48273920 authored by ecrombag's avatar ecrombag

Update previewer. Now the filename is also passed in het http-headers, making...

Update previewer. Now the filename is also passed in het http-headers, making sure the user can download the file, if there is no browser plugin present for that specific mime-type.

git-svn-id: https://svn.cs.ru.nl/repos/iTask-system/trunk@790 63da3aa8-80fd-4f01-9db8-e6ea747a3da2
parent ddc4aa88
......@@ -60,7 +60,8 @@ handleDocumentPreviewLinkRequest req tst
| isJust mbData
= ({rsp_headers = [("Status", "200 OK"),
("Content-Type", doc.Document.mimeType),
("Content-Length", toString doc.Document.size)
("Content-Length", toString doc.Document.size),
("Content-Disposition","filename=\""+++doc.Document.fileName+++"\"")
]
,rsp_data = fromJust mbData},tst)
| otherwise
......
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