diff --git a/web/react/components/post_body.jsx b/web/react/components/post_body.jsx index 3079917ecd..0fffec0217 100644 --- a/web/react/components/post_body.jsx +++ b/web/react/components/post_body.jsx @@ -89,6 +89,7 @@ module.exports = React.createClass({ var fileInfo = utils.splitFileLocation(filenames[i]); if (Object.keys(fileInfo).length === 0) continue; + var type = utils.getFileType(fileInfo.ext); if (type === "image") { @@ -102,7 +103,7 @@ module.exports = React.createClass({ images.push(filenames[i]); } else if (i < Constants.MAX_DISPLAY_FILES) { postFiles.push( -