Skip to content

Commit

Permalink
Fix tinymce image upload errors (#3095)
Browse files Browse the repository at this point in the history
  • Loading branch information
partydragen authored and Derkades committed Oct 7, 2022
1 parent 9aafa40 commit da8c854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Core/queries/tinymce_image_upload.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
if ($image['file']) {
if (!$image->upload()) {
http_response_code(500);
$error = $e->getMessage() ?: 'Unknown error, check logs for more details';
$error = $image->getError() ?: 'Unknown error, check logs for more details';
ErrorHandler::logWarning('TinyMCE image upload error: ' . $error);
die($error);
}
Expand Down

0 comments on commit da8c854

Please sign in to comment.