3

I know how can I retrieve the first file name

$fileupload = $node->field_fileupload[$node->language][0]['filename'];

but how can I retrieve the other unlimited file names

1 Answer 1

2

The best solution would be to run a foreach:

foreach($node->field_fileupload[$node->language] as $fileupload) {
  echo $fileupload['filename'];
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.