๐Ÿ‡ฎ๐Ÿ‡ณIndia @Narendra@drupalchamp

Account created on 2 February 2022, over 2 years ago
#

Recent comments

๐Ÿ‡ฎ๐Ÿ‡ณIndia Narendra@drupalchamp

Narendra@drupalchamp โ†’ changed the visibility of the branch 2868049-unable-to-determine to hidden.

๐Ÿ‡ฎ๐Ÿ‡ณIndia Narendra@drupalchamp

@DamienMcKenna
I tried your way but had no luck, instead, I upgraded the Pantheon search API module by the composer. That solves my issue.

๐Ÿ‡ฎ๐Ÿ‡ณIndia Narendra@drupalchamp

Alwine_S
could you please mention exactly which module you installed to solve this issue? I am currently working on Drupal9.0 and facing the same issue.

๐Ÿ‡ฎ๐Ÿ‡ณIndia Narendra@drupalchamp

hi, There
I am using drupal 9.2.7 and i have an issue with managed_file. I used a custom form with managed_file, it creates a directory and uploads the document but in submitForm function, it gives only a "blank array". there are no details about fid, file type, size, etc on submit function. i am using $form_state->getValues('file_name'); as below code-

$form['select_file'] = [
'#type' => 'managed_file',
'#title' => $this->t('choose file'),
'#multiple' => FALSE,
'#description' => t("Document should be in .jpeg, .jpg, .png, .gif, .txt, .docx and .pdf format!"),
'#upload_location' => 'public://Applicant-file/applicant_'.$id.'',
'#upload_validators' => array
(
'file_validate_extensions' => array('pdf jpg jpeg png gif txt docx '),
'file_validate_size' => array(25600000),
),
];

public function submitForm(array &$form, FormStateInterface $form_state) {
$select_file = $form_state->getValue('select_file');
................................
................................
}

Production build 0.69.0 2024