Creating an image upload input field
As i understand you could use something like this '#type' =&gt; 'file'

  $form['image_file']=array(  
    '#type' =&gt; 'file',
   '#title' =&gt; t('Upload YourImage'),
    '#upload_validators' =&gt; array(
    'file_validate_extensions' =&gt; array('gif'),),

        );
return $form;