Add widget to file field I am looking to write a field widget to extend the file field in Drupal 7. The reason is that I want to do some file parsing after it has been uploaded. Are there examples I would be able to look at? How should I got about writing this new module? Or is there a better way I can do this?
You can check the hook_field_widget_info() 

function hook_field_widget_info() {
  return array(
    'text_textfield' =&gt; array(
      'label' =&gt; t('Text field'),
      'field types' =&gt; array('text'),
      'settings' =&gt; array('size' =&gt; 60),
      'behaviors' =&gt; array(
        'multiple values' =&gt; FIELD_BEHAVIOR_DEFAULT,
        'default value' =&gt; FIELD_BEHAVIOR_DEFAULT,
      ),
    );

}