Skip to content
Snippets Groups Projects
Unverified Commit 8ca8bc7d authored by Lucas Hedding's avatar Lucas Hedding
Browse files

Issue #3418229 by jibran, heddn: Only allow uploading JSON, CSV or XML files...

Issue #3418229 by jibran, heddn: Only allow uploading JSON, CSV or XML files in the file field for MigrateSourceUiForm
parent 001f1050
No related branches found
No related tags found
No related merge requests found
Pipeline #228099 failed
......@@ -106,6 +106,11 @@ class MigrateSourceUiForm extends FormBase {
$form['source_file'] = [
'#type' => 'file',
'#title' => $this->t('Upload the source file'),
'#upload_validators' => [
'file_validate_extensions' => [
'json csv xml',
],
],
];
$form['update_existing_records'] = [
'#type' => 'checkbox',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment