fix file download

This commit is contained in:
2026-01-07 12:52:52 +01:00
parent 162688ceb4
commit 2f4cb1ee7a

View File

@@ -14,6 +14,12 @@ abstract class Action extends Entity
?string $url = null,
array $files = [],
) {
foreach ($files as $i => $file) {
if (isset($file['content'])) {
$files[$i]['content'] = base64_encode($file['content']);
}
}
return [
'json' => [
'type' => 'action',