Skip to content

Commit

Permalink
rm thumbnails for now
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexpw committed Aug 2, 2022
1 parent 73d4dff commit f54cff3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions public/app/tpl/us-files.php
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@
echo $fileIco . ' ' . $file . '</div>';
}

if(file_exists('../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $file)) {
echo '<img src="../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $file . '" class="img-thumbnail" alt="...">';
}
//if(file_exists('../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $file)) {
// echo '<img src="../users/thumbs/' . $_SESSION['Username'] . '/_thumb_' . $file . '" class="img-thumbnail" alt="...">';
//}

// Show file size
echo '<div class="col-md-2 d-none d-sm-block" style="margin-bottom:2px;">' . Storio::ReadableSize(filesize($usrDir . $getBrowse. '/' . $file)) . '</div>';
Expand Down
8 changes: 4 additions & 4 deletions public/rmUpload.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit f54cff3

Please sign in to comment.