summaryrefslogtreecommitdiffstats
path: root/web/react/components/file_attachment.jsx
diff options
context:
space:
mode:
authorhmhealey <harrisonmhealey@gmail.com>2015-07-28 16:41:57 -0400
committerhmhealey <harrisonmhealey@gmail.com>2015-07-29 10:04:28 -0400
commitaf246bb44b7968b9f880d819e3aa04342846fccc (patch)
treea7fc74d5bffa684aee1a9d445c47b9f9d25835e7 /web/react/components/file_attachment.jsx
parentb0c64c73f929c9021196706fa1352ac4aa6f95a4 (diff)
downloadchat-af246bb44b7968b9f880d819e3aa04342846fccc.tar.gz
chat-af246bb44b7968b9f880d819e3aa04342846fccc.tar.bz2
chat-af246bb44b7968b9f880d819e3aa04342846fccc.zip
Updated ViewImage modal dialog to include details about non-image files
Diffstat (limited to 'web/react/components/file_attachment.jsx')
-rw-r--r--web/react/components/file_attachment.jsx2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/react/components/file_attachment.jsx b/web/react/components/file_attachment.jsx
index 385ff0e8d..57a064ff4 100644
--- a/web/react/components/file_attachment.jsx
+++ b/web/react/components/file_attachment.jsx
@@ -110,7 +110,7 @@ module.exports = React.createClass({
{thumbnail}
</a>
<div className="post-image__details">
- <div className="post-image__name">{fileInfo.name}</div>
+ <div className="post-image__name">{decodeURIComponent(utils.getFileName(filename))}</div>
<div>
<span className="post-image__type">{fileInfo.ext.toUpperCase()}</span>
<span className="post-image__size">{fileSizeString}</span>