summaryrefslogtreecommitdiffstats
path: root/web/react/components/view_image.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2016-01-21 13:55:47 -0500
committerhmhealey <harrisonmhealey@gmail.com>2016-01-21 13:55:47 -0500
commit261b38be45420b45f97842ec55247ea7b47a527e (patch)
treec4cc8ed77bc6e0d60c80676c5e59a3821b576e11 /web/react/components/view_image.jsx
parent302f210d66fd0850852aa2e636df14509688ee18 (diff)
downloadchat-261b38be45420b45f97842ec55247ea7b47a527e.tar.gz
chat-261b38be45420b45f97842ec55247ea7b47a527e.tar.bz2
chat-261b38be45420b45f97842ec55247ea7b47a527e.zip
Added download param to getFile api call
Diffstat (limited to 'web/react/components/view_image.jsx')
-rw-r--r--web/react/components/view_image.jsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/web/react/components/view_image.jsx b/web/react/components/view_image.jsx
index 31ec91248..d11f8a21c 100644
--- a/web/react/components/view_image.jsx
+++ b/web/react/components/view_image.jsx
@@ -211,7 +211,7 @@ export default class ViewImageModal extends React.Component {
}
const filename = this.props.filenames[this.state.imgId];
- const fileUrl = Utils.getFileUrl(filename);
+ const fileUrl = Utils.getFileUrl(filename, true);
var content;
if (this.state.loaded[this.state.imgId]) {
@@ -377,6 +377,7 @@ function ImagePreview({filename, fileUrl, fileInfo, maxHeight}) {
<a
href={fileUrl}
target='_blank'
+ download={true}
>
<img
style={{maxHeight}}