Just tried to get the uid of a file, but without relationships there is no UID or Username avalible.
It would be nice if this table field would be supported.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

fubhy’s picture

Assigned: Unassigned » fubhy

Assigning that one to me. The uid (author) relationship for file_managed is missing.

fubhy’s picture

Status: Needs work » Needs review
FileSize
843 bytes

Patch attached.

fubhy’s picture

Hmm, maybe "Author" isn't the right terminology for the file-uploader.

fubhy’s picture

Attached the "fixed" patch.

fubhy’s picture

The post-terminology-discussion patch:

dawehner’s picture

Status: Needs review » Fixed

Thanks!
And commited.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.