Can't set data value using a filename

Events happening in the community are now at Drupal community events on www.drupal.org.
hampshire's picture

I am trying to set the data value of a text field using the filename of attached image but I can not figure out how to do this. I can access the fid and many other values but not the filename.

this works

print $node->field_photos[$node->language][0]['fid'];

this does not

print $node->field_photos[$node->language][0]['filename'];

Any suggestions?
Thanks

Comments

Updated original post

hampshire's picture

Updated original post rather than reexplaining myself in a second post.

if you can export your rules

zterry95's picture

if you can export your rules and attach it here, it will be better.

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: