Please use entity tokens instead of just node tokens.
FileField Paths code:

<?php
      $entity_info
= entity_get_info($form['#instance']['entity_type']);
     
// Replacement patterns for field.
     
$field_data['form_path']['token_tree'] = array(
       
'#type' => 'fieldset',
       
'#title' => t('Replacement patterns'),
       
'#collapsible' => TRUE,
       
'#collapsed' => TRUE,
       
'#description' => theme('token_tree', array('token_types' => array('file', $entity_info['token type']))),
       
'#weight' => 10,
      );
?>

Comments

Category:bug» feature

I'll look into this soon. Thanks

Project:Image attribute defaults» ImageField Tokens
Version:» 7.x-1.x-dev
Assigned:Unassigned» eosrei

Code has moved to ImageField Tokens 7.x, moving issues also.