Coming from #3232248-54: Move _file_save_upload_single to a service and deprecate →
+++ b/core/modules/file/src/Upload/FileUploadHandler.php
@@ -0,0 +1,134 @@
+ switch ($uploadedFile->getError()) {
+ case \UPLOAD_ERR_INI_SIZE:
...
+ case \UPLOAD_ERR_FORM_SIZE:
...
+ case \UPLOAD_ERR_PARTIAL:
...
+ case \UPLOAD_ERR_NO_FILE:
...
+ case \UPLOAD_ERR_NO_TMP_DIR:
...
+ case \UPLOAD_ERR_CANT_WRITE:
...
+ case \UPLOAD_ERR_EXTENSION:
...
+ throw new FileException($uploadedFile->getErrorMessage());
Use https://www.php.net/manual/en/control-structures.match.php
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.