If a content type has many filefield CCK fields, using multigroup for example, it is hard to determine which field is causing problems when getting the following errors:

Referencing to the file used in the %field field is not allowed.
OR
The file referenced by the %field field does not exist.

Amending the error message to include the filename would allow the troublesome files to be identified with greater ease.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

DeeLay’s picture

Attached suggested patch

DeeLay’s picture

Oops, should have been $file->filename

pwolanin’s picture

Category: Bug report » Feature request
Issue summary: View changes
Status: Active » Closed (won't fix)

only bug fixes now