Fa005 submissions file link in notifications (#298)

* fix: unsigned url in form email

* fix: signed file link in email

* fix: use limit function for file  label name

* feat: use signed url  for files in email and csv export

---------

Co-authored-by: Julien Nahum <julien@nahum.net>
This commit is contained in:
Favour Olayinka
2024-01-31 12:21:28 +01:00
committed by GitHub
parent 428ab4f6cf
commit 38cb133e52
6 changed files with 47 additions and 11 deletions

View File

@@ -37,7 +37,8 @@ class FormSubmissionController extends Controller
$formatter = (new FormSubmissionFormatter($form, $row['data']))
->outputStringsOnly()
->setEmptyForNoValue()
->showRemovedFields();
->showRemovedFields()
->useSignedUrlForFiles();
$tmp = $formatter->getCleanKeyValue();
$tmp['Create Date'] = date("Y-m-d H:i", strtotime($row['created_at']));
$allRows[] = $tmp;