A download endpoint doesn't need to accept a filesystem path just because it returns a file. A server-owned identifier can map to a known file record. The caller selects that identifier, and the server still checks whether the current account owns the file.
Reject path-shaped input at this boundary and return a normal not-found response for an unknown clean identifier. A known identifier owned by someone else must remain forbidden. The file table here is a teaching stand-in: no filesystem is available to the handler. The mapping design avoids path composition altogether. A production endpoint that accepts paths needs additional care around canonicalization, root boundaries, symbolic links and the file API it uses. An identifier grammar alone doesn't solve those filesystem problems. Keep the owner's export download working without disclosing the private file.
Map approved identifiers to server-owned files and verify ownership.