Skip to content

Beautiful Open-Source Form Builder

fix: signed url for webhooks (#325)

Favour Olayinkae8aa1ac10380
diff --git a/app/Service/Forms/Webhooks/AbstractWebhookHandler.php b/app/Service/Forms/Webhooks/AbstractWebhookHandler.php
index a76d84414..4e404ff5f 100644
--- a/app/Service/Forms/Webhooks/AbstractWebhookHandler.php
+++ b/app/Service/Forms/Webhooks/AbstractWebhookHandler.php
@@ -25,7 +25,10 @@ abstract class AbstractWebhookHandler
*/
protected function getWebhookData(): array
{
- $formatter = (new FormSubmissionFormatter($this->form, $this->data))->showHiddenFields();
+ $formatter = (new FormSubmissionFormatter($this->form, $this->data))
+ ->useSignedUrlForFiles()
+ ->showHiddenFields()
+ ;
$formattedData = [];
foreach ($formatter->getFieldsWithValue() as $field) {