Lower resolution image preview

This commit is contained in:
Michał Gdula 2022-09-09 15:37:34 +00:00
parent 3847020ae7
commit 41d98a7d47
8 changed files with 190 additions and 84 deletions

View file

@ -40,6 +40,10 @@ if (isset($_POST['submit_delete'])) {
if (is_file("../../images/thumbnails/".$image_array['imagename'])) {
unlink("../../images/thumbnails/".$image_array['imagename']);
}
// Delete preview if exitsts
if (is_file("../../images/previews/".$image_array['imagename'])) {
unlink("../../images/previews/".$image_array['imagename']);
}
// TP user to the homepage with a success message
?>
<script>