From 02587576396f9c9033c2d03b92a6432ecbc4f6f0 Mon Sep 17 00:00:00 2001 From: Starbeamrainbowlabs Date: Sat, 4 Jun 2016 13:38:59 +0100 Subject: [PATCH] Fix #71 (It says "Original Image" for PDFs). --- build/index.php | 5 ++++- module_index.json | 2 +- modules/feature-upload.php | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/build/index.php b/build/index.php index 6bb3c95..25922a7 100644 --- a/build/index.php +++ b/build/index.php @@ -3002,11 +3002,14 @@ register_module([ { case "application": case "image": + if($mime_type == "application/pdf") + $fileTypeDisplay = "file"; + $preview_sizes = [ 256, 512, 768, 1024, 1440 ]; $preview_html .= "\t\t\t