fix(uploads): Display icon regardless of ext capitalization

Note: In the future we really need to consolidate file-upload.cjsx and attachment-component.cjsx. #1700
This commit is contained in:
Ben Gotow 2016-03-15 09:31:22 -07:00
parent 310b8de2b0
commit 1ad2598a50

View file

@ -31,6 +31,6 @@ class FileUpload extends React.Component
Actions.removeAttachment @props.upload
_extension: =>
path.extname(@props.upload.filename)[1..-1]
path.extname(@props.upload.filename.toLowerCase())[1..-1]
module.exports = FileUpload