I am trying to copying an Entity in the DB, which has a file associated to it to another user. So when a user tried to duplicate an entity, I need to: 1. Copy entity to the new user 2. If there is a file attached to it, duplicate it and attach to the new Entity created.
I could not figure out how to duplicate an existing file in Convex. Any idea?