Merge pull request #1199 from SamBrishes/patch-006

[BUGFIX] AJAX Error Message when uploading Images
This commit is contained in:
Diego Najar 2020-05-24 09:20:16 +02:00 committed by GitHub
commit 9095ef077a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 3 deletions

View File

@ -69,9 +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
Filesystem::rmfile(PATH_TMP.$filename);
if ($image) { if ($image) {
chmod($image, 0644); chmod($image, 0644);
$filename = Filesystem::filename($image); $filename = Filesystem::filename($image);