Remove Filesystem:rmfile completely

This commit is contained in:
SamBrishes 2020-05-23 18:48:14 +02:00
parent 4ec9b47c96
commit 2e307339ab

View File

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