I'm trying to do a very simple thing (seems not that simple at all) in my custom form, to add multiple files using the managed_file form api. Like in the admin, select a file, upload, then a new input file appears.
But I can't achieve that... do I need a callback ???
'gallery' => array( '#type' => 'managed_file', '#name' => 'gallery', '#title' => t('Gallery'), '#upload_location' => 'public://', '#attributes' => array( 'multiple' => 'multiple', ), ),