Gracefully ignore Thumbnail generation failures in DefaultUploadFileSaveStrategy
authorTim Düsterhus <duesterhus@woltlab.com>
Fri, 10 Jun 2022 10:14:45 +0000 (12:14 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Fri, 10 Jun 2022 10:16:51 +0000 (12:16 +0200)
commita5b526093770196a4bb007ccf91429b645f7a120
tree6cc45d62b338e537beb290f13c91da6f8e5a61b4
parent66ba3e765ecfed5991b3cb31ce1c5fcc0313ac7e
Gracefully ignore Thumbnail generation failures in DefaultUploadFileSaveStrategy

`->generateThumbnails()` might already not do anything of the memory limit is
likely going to be exceeded, causing image upload to be thumbnail-less. Extend
this to all cases of thumbnail generation failure by catching exceptions thrown
when loading the image or when performing the resizing operation.
wcfsetup/install/files/lib/system/upload/DefaultUploadFileSaveStrategy.class.php