request->getFiles('image'); if (is_array($file) && !empty($file['tmp_name']) && (int) ($file['error'] ?? UPLOAD_ERR_NO_FILE) === UPLOAD_ERR_OK ) { $this->mediaUploader->sanitizePngUpload((string) $file['tmp_name']); } return [$targetFolder, $type]; } }