Skip to content

Commit 330c475

Browse files
simisonmatticbot
authored andcommitted
Forms: Add CSV file upload support (#46308)
Allow text/csv files to be uploaded via the unauthenticated file upload list, using forms file upload field. Committed via a GitHub action: https://github.com/Automattic/jetpack/actions/runs/20261844760 Upstream-Ref: Automattic/jetpack@117f45a
1 parent c730f6c commit 330c475

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ This is an alpha version! The changes listed here are not final.
1515

1616
### Changed
1717
- Add jetpack_forms_extra_webhooks filter and include feedback ID in jetpack_forms_before_webhook_request filter
18+
- Allow CSV files to be uploaded via contact forms
1819
- Forms: auto-generate webhook id so users don't have to fill it.
1920
- Forms: refactored how we retrieve form submission fields to send in the webhook payload.
2021
- Forms: track webhook requests done in wpcom infrastructure.

src/contact-form/class-contact-form-field.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1473,6 +1473,7 @@ private function render_file_field( $id, $label, $class, $required, $required_fi
14731473
'odt' => 'application/vnd.oasis.opendocument.text',
14741474
'ppsx' => 'application/vnd.openxmlformats-officedocument.presentationml.slideshow',
14751475
'ppsm' => 'application/vnd.ms-powerpoint.slideshow.macroEnabled.12',
1476+
'csv' => 'text/csv',
14761477
'xla|xls|xlt|xlw' => 'application/vnd.ms-excel',
14771478
'xlsx' => 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
14781479
'xlsm' => 'application/vnd.ms-excel.sheet.macroEnabled.12',

0 commit comments

Comments
 (0)