Skip to main content
added 8 characters in body
Source Link
Pierre Buyle
  • 11.4k
  • 38
  • 63

To output a file select form element in a Drupal form, you simply add a file or managed typefile element.

$form['upload'] = array(
    '#type' => 'file',
    '#title' => t('Choose a file')
  );
)

To output a file select form element in a Drupal form, you simply add a file or managed type.

$form['upload'] = array(
    '#type' => 'file',
    '#title' => t('Choose a file')
  );
)

To output a file select form element in a Drupal form, you simply add a file or managed file element.

$form['upload'] = array(
    '#type' => 'file',
    '#title' => t('Choose a file')
  );
)
Source Link
Pierre Buyle
  • 11.4k
  • 38
  • 63

To output a file select form element in a Drupal form, you simply add a file or managed type.

$form['upload'] = array(
    '#type' => 'file',
    '#title' => t('Choose a file')
  );
)