Remove Filesystem:rmfile completely

This commit is contained in:
SamBrishes 2020-05-23 18:48:14 +02:00
parent 4ec9b47c96
commit 2e307339ab
1 changed files with 0 additions and 5 deletions

View File

@ -69,11 +69,6 @@ foreach ($_FILES['images']['name'] as $uuid=>$filename) {
// Transform the image and generate the thumbnail // Transform the image and generate the thumbnail
$image = transformImage(PATH_TMP.$filename, $imageDirectory, $thumbnailDirectory); $image = transformImage(PATH_TMP.$filename, $imageDirectory, $thumbnailDirectory);
// Delete temporary file
if (file_exists(PATH_TMP.$filename)) {
Filesystem::rmfile(PATH_TMP.$filename);
}
if ($image) { if ($image) {
chmod($image, 0644); chmod($image, 0644);
$filename = Filesystem::filename($image); $filename = Filesystem::filename($image);