Upload directory for a field instance I've been searching a lot for this, but no luck. 
I've created a custom file field along with an instance for my custom content type in the .install file. 

I've set up everything except that I want that by default this instance of the file file that I created to upload to the 'private' directory and if it's not defined, to define it with this module.

  $file_download_link_instance = array(
  'field_name' =&gt; 'file_download_link',
  'required' =&gt; true,
  'entity_type' =&gt; 'node',
  'bundle' =&gt; $machine_name,
  'label' =&gt; t('Files to upload'),
  'settings' =&gt; array(
    'file_extensions' =&gt; 'txt doc docx pdf ods odt xls xls png jpg jpeg',
    'description_field' =&gt; TRUE,
    ),
  'description' =&gt; t('Please upload here the files.'),
  'display' =&gt; array(
    'default' =&gt; array(
      'type' =&gt; 'hidden',
      ),
    'teaser' =&gt; array(
      'type' =&gt; 'hidden',
      ),
  ),
  'locked' =&gt; TRUE,
);


I believe that I have to edit the 'settings' array, but I don't know the syntax.
Thanks!
You just wanted to add attribute file_directory inside the settings array

  'settings' =&gt; array(
    'file_directory' =&gt; 'myModule/images',
    ),


Here is other attributes that might be added:

  'settings' =&gt; array(
    'file_extensions' =&gt; 'png jpg jpeg',
    'file_directory' =&gt; '',
    'max_filesize' =&gt; '20 MB',
    'alt_field' =&gt; 1,
    'title_field' =&gt; 1,
    'max_resolution' =&gt; '300x200',
    'min_resolution' =&gt; '200x125',
    'default_image' =&gt; 0,
  ),