Skip to content

Commit 1b1e09c

Browse files
author
Tom Boutell
committed
PDF, not PNG, needs an extra .png added
1 parent 83c55ab commit 1b1e09c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

BlueImp/UploadHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ protected function handle_file_upload($uploaded_file, $name, $size, $type, $erro
357357
if ($this->create_scaled_image($file->name, $options)) {
358358
if ($this->options['upload_dir'] !== $options['upload_dir']) {
359359
$file_ext = strtolower(substr(strrchr($file->name, '.'), 1));
360-
if($file_ext == 'ai' || $file_ext == 'psd' || $file_ext == 'png') {
360+
if($file_ext == 'ai' || $file_ext == 'psd' || $file_ext == 'pdf') {
361361
$thumbnail_ext = '.png';
362362
}
363363

0 commit comments

Comments
 (0)