Forum Academy Marketplace Showcase Pricing Features

Any way to target a file in the file manager based on the 'attached to' uid?

I want to create a way for a user to duplicate a file as a datatype in my database which will have a data field that is an uploaded file which would exist in my file manager.

I’d like to allow the user to basically have the single file in the file manager, and if a user decides to delete the duplicated data entry to have a conditional to determine if the data entry being duplicated has the same unique id as the ‘attached to’ uid value in the file manager.