You've already forked pilot-sdk
fix file download
This commit is contained in:
@@ -14,6 +14,12 @@ abstract class Action extends Entity
|
|||||||
?string $url = null,
|
?string $url = null,
|
||||||
array $files = [],
|
array $files = [],
|
||||||
) {
|
) {
|
||||||
|
foreach ($files as $i => $file) {
|
||||||
|
if (isset($file['content'])) {
|
||||||
|
$files[$i]['content'] = base64_encode($file['content']);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'json' => [
|
'json' => [
|
||||||
'type' => 'action',
|
'type' => 'action',
|
||||||
|
|||||||
Reference in New Issue
Block a user