When using a file collection the fileReferenceUid field contains the actual file UID, while the uidLocal field is null. In this case, there is no FileReference, so fileReferenceUid field should be null.
uidLocal should always contain the file UID.
Maybe rename $fileReference variable to $file to avoid confusion?
When using a file collection the
fileReferenceUid
field contains the actual file UID, while theuidLocal
field is null. In this case, there is no FileReference, sofileReferenceUid
field should be null.uidLocal
should always contain the file UID.Maybe rename
$fileReference
variable to$file
to avoid confusion?