I'm asking because I want to fix http://drupal.org/node/1957602

So, managed file can be saved in 2 ways:

  1. File can be ajax-uploaded and form then submitted
  2. File can be selected and form submitted without clicking upload - file gets uploaded as a part of form's submission
    1. Where actual operations are performed? Where is second case coded?