Maybe it is implemented.
Please check “Flow” app and add a new rule using file access control app. With a little bit luck you might be able to create a rule, which sends you an email, which shows you, who created a file on the Nextcloud server.
But I am not sure, because I never used those apps in the past. Maybe the forum search or google might help you with searching.
This information is already available, in multiple places.
Scenario: user1 (original owner) → shares with user2 (re-share allowed) → user2 re-shares with user3.
What user3 sees:
File listing — shows user1’s avatar on the right with the tooltip “Shared by user1” on hover. This is always the original owner, regardless of how many re-share steps are in between.
Details panel — shows “Shared with you by user2” — the direct/immediate sharer.
Internal shares section (below the share input field) — shows “user2 by user1”, making the full share chain explicit.
So Nextcloud already exposes all the information you need:
Who originally owns the file (user1, visible in the listing)
Who directly shared it with you (user2, visible in the details)