summaryrefslogtreecommitdiffstats
path: root/web/react/components
diff options
context:
space:
mode:
authorChristopher Speller <crspeller@gmail.com>2016-01-22 08:14:18 -0500
committerChristopher Speller <crspeller@gmail.com>2016-01-22 08:14:18 -0500
commit9937e1ead2d75c52101dd0ab04b97c074f87232a (patch)
tree7f0489548a18aac9e81c287a8ea3dac269044195 /web/react/components
parent43098bc1df9fc73bd36e75c54b38f7edeb86d7ff (diff)
parent261b38be45420b45f97842ec55247ea7b47a527e (diff)
downloadchat-9937e1ead2d75c52101dd0ab04b97c074f87232a.tar.gz
chat-9937e1ead2d75c52101dd0ab04b97c074f87232a.tar.bz2
chat-9937e1ead2d75c52101dd0ab04b97c074f87232a.zip
Merge pull request #1948 from hmhealey/plt1652
PLT-1652 Added download param to getFile api call
Diffstat (limited to 'web/react/components')
-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}}