Fix for Issue #1176

Fix for Issue #1176
This commit is contained in:
SamBrishes 2020-05-22 23:34:15 +02:00
parent 4a740ecb03
commit 4ec9b47c96
1 changed files with 3 additions and 1 deletions

View File

@ -70,7 +70,9 @@ foreach ($_FILES['images']['name'] as $uuid=>$filename) {
$image = transformImage(PATH_TMP.$filename, $imageDirectory, $thumbnailDirectory); $image = transformImage(PATH_TMP.$filename, $imageDirectory, $thumbnailDirectory);
// Delete temporary file // Delete temporary file
Filesystem::rmfile(PATH_TMP.$filename); if (file_exists(PATH_TMP.$filename)) {
Filesystem::rmfile(PATH_TMP.$filename);
}
if ($image) { if ($image) {
chmod($image, 0644); chmod($image, 0644);