From f54cff3bb9dbafe44a1795a98290217b0c878763 Mon Sep 17 00:00:00 2001 From: Alexander White Date: Tue, 2 Aug 2022 10:38:27 +0100 Subject: [PATCH] rm thumbnails for now --- public/app/tpl/us-files.php | 6 +++--- public/rmUpload.php | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/public/app/tpl/us-files.php b/public/app/tpl/us-files.php index b8296e9..07f8768 100644 --- a/public/app/tpl/us-files.php +++ b/public/app/tpl/us-files.php @@ -367,9 +367,9 @@ echo $fileIco . ' ' . $file . ''; } - if(file_exists('../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $file)) { - echo '...'; - } + //if(file_exists('../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $file)) { + // echo '...'; + //} // Show file size echo '
' . Storio::ReadableSize(filesize($usrDir . $getBrowse. '/' . $file)) . '
'; diff --git a/public/rmUpload.php b/public/rmUpload.php index 7b96db9..546177f 100644 --- a/public/rmUpload.php +++ b/public/rmUpload.php @@ -121,12 +121,12 @@ Storio::AddShareLink($dirUpl, $_FILES["file"]["name"][$index], $_SESSION['Username']); // Grab the mime type - $mimeType = mime_content_type($dirUpl . '/' . $_FILES["file"]["name"][$index]); + //$mimeType = mime_content_type($dirUpl . '/' . $_FILES["file"]["name"][$index]); // If it is an image, create a thumbnail - if(strpos($mimeType, 'image') !== false) { - Storio::CreateThumb($dirUpl . '/' . $_FILES["file"]["name"][$index], '../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $_FILES["file"]["name"][$index], 100, 100); - } + //if(strpos($mimeType, 'image') !== false) { + // Storio::CreateThumb($dirUpl . '/' . $_FILES["file"]["name"][$index], '../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $_FILES["file"]["name"][$index], 100, 100); + //} }else{ return false; }