diff --git a/app/Integrations/Google/Sheets/SpreadsheetManager.php b/app/Integrations/Google/Sheets/SpreadsheetManager.php index 5c674ad8..77e73bce 100644 --- a/app/Integrations/Google/Sheets/SpreadsheetManager.php +++ b/app/Integrations/Google/Sheets/SpreadsheetManager.php @@ -129,7 +129,7 @@ class SpreadsheetManager public function buildRow(array $submissionData): array { - $formatter = (new FormSubmissionFormatter($this->integration->form, $submissionData))->outputStringsOnly(); + $formatter = (new FormSubmissionFormatter($this->integration->form, $submissionData))->useSignedUrlForFiles()->outputStringsOnly(); $fields = $formatter->getFieldsWithValue(); diff --git a/app/Service/Forms/FormSubmissionFormatter.php b/app/Service/Forms/FormSubmissionFormatter.php index a9a2465c..b2131770 100644 --- a/app/Service/Forms/FormSubmissionFormatter.php +++ b/app/Service/Forms/FormSubmissionFormatter.php @@ -145,7 +145,7 @@ class FormSubmissionFormatter } else { $returnArray[$field['name']] = $val; } - } elseif ($field['type'] == 'files') { + } elseif (in_array($field['type'], ['files', 'signature'])) { if ($this->outputStringsOnly) { $formId = $this->form->id; $returnArray[$field['name']] = implode( @@ -219,7 +219,7 @@ class FormSubmissionFormatter } else { $field['value'] = $val; } - } elseif ($field['type'] == 'files') { + } elseif (in_array($field['type'], ['files', 'signature'])) { if ($this->outputStringsOnly) { $formId = $this->form->id; $field['value'] = implode(