Give the gift of Drupal. All merchandise is 50% off through 2016.
I am trying to allow a user to upload multiple .pdf documents. I'm unable to figure out how the upload module works, and so I'm trying a new solution. Here's the code that I have for my form
$form['file1'] = array( '#type' => 'file', '#title' => t('attach your files here'), ); $form['submit'] = array( '#type' => 'submit', '#value' => t('Upload Pdf'), );
I now need to know how I can actually upload this to the server. Is it in the formname_submit hook or is there some other way to do this?