Afform - support file uploads
authorColeman Watts <coleman@civicrm.org>
Mon, 16 Aug 2021 01:33:57 +0000 (21:33 -0400)
committerColeman Watts <coleman@civicrm.org>
Fri, 27 Aug 2021 01:29:56 +0000 (21:29 -0400)
commit9d85626b7b9836c554213e54a1a8115ed5fa8d34
tree6d983e61f729691cf9b0d458ab98701753f70e20
parent12e4505a2193162253eb5a1132af87b0c65bf2b9
Afform - support file uploads

Adds a new API action Afform.submitFile which receives uploaded files one at a time after the form is submitted.
15 files changed:
CRM/Core/BAO/CustomValueTable.php
Civi/API/Subscriber/DynamicFKAuthorization.php
ext/afform/admin/ang/afGuiEditor/inputType/File.html [new file with mode: 0644]
ext/afform/core/Civi/Afform/Event/AfformSubmitEvent.php
ext/afform/core/Civi/Api4/Action/Afform/AbstractProcessor.php
ext/afform/core/Civi/Api4/Action/Afform/Submit.php
ext/afform/core/Civi/Api4/Action/Afform/SubmitFile.php [new file with mode: 0644]
ext/afform/core/Civi/Api4/Afform.php
ext/afform/core/afform.php
ext/afform/core/ang/af/afField.component.js
ext/afform/core/ang/af/afForm.component.js
ext/afform/core/ang/af/afRepeat.directive.js
ext/afform/core/ang/af/fields/File.html [new file with mode: 0644]
ext/afform/core/ang/afCore.ang.php
ext/afform/mock/tests/phpunit/api/v4/AfformFileUploadTest.php [new file with mode: 0644]