title: Drupal: getting attached files from nid and field name
body: <p>In Drupal 7.x, given a nid and a file field name, I'm trying to get the files (as $fid or objects) which have been uploaded as file attachments to that node. </p>
  
  <p>Drupal will populate the uploaded files only when they are set as "displayed" but I need to do this for all the files of that field, no matters how they display setting is.</p>
  
  <p>I've spent quite some time investigating into this but the new d7 file api looks pretty obscure from a documentation and code point of view. IMHO, too much "drupal magic" happening there for a fast understanding.</p>
  
  <p>Any pointer to good documentation and/or suggestion on the solution greatly appreciated.</p>
  
  <p>Thanks.</p>