diff --git a/src/components/FilePreview.js b/src/components/FilePreview.js
index <HASH>..<HASH> 100644
--- a/src/components/FilePreview.js
+++ b/src/components/FilePreview.js
@@ -16,7 +16,7 @@ export default class FilePreview extends Component {
   render() {
     const { file } = this.props;
     const extension = file.extname.substring(1);
-    const image = /png|jpg|gif|jpeg|svg/.test(extension);
+    const image = /png|jpg|gif|jpeg|svg/i.test(extension);
     return (
       <div className="file-preview">
         <a href={file.http_url} target="_blank">
allow previewing images with uppercase filenames