Match Attributes can be used to automatically relate a child asset to a parent asset on upload based on the ID, title or original filename of the parent.
The example we're going to use Match Attribute to automatically relate two audio files (broadcast_301038.mp3 and recording_220373.mp3) with their transcripts (broadcast_301038.txt and recording_220373.txt) based on the filename.
First, if they're not already configured, set up your Asset Types. In the Admin > Asset Types area create your Asset Types and configure the parent-child relationship. In this example, Audio is the parent and Transcript is the child.
Edit the child Asset Type and find the Match Attribute section and set it to the attribute used to identify a match. In this example we are matching assets based on the original filename but you can use the asset ID in which case the filename of the file you upload as the child asset would need to be the asset ID of the parent asset. Similarly with the title attribute.
Upload your parent assets. Match Attribute requires that the child assets be uploaded as part of a bulk upload but one of the major advantages of Match Attribute is that both the parent and child assets can be uploaded in bulk. As long as there is a parent asset with an attribute to match, the assets will be related.
When you upload your child assets select the 'Add new child assets to existing parents' option. This lets the system know that you're uploading a child asset and that it should look for an attribute to match against.
Provided the filename of the child asset matches the filename of the parent asset - ignoring the format/extension - the two assets will be automatically related to each other.
The above shows the Transcript asset where you can see the related Audio asset. Below is what you see on the Audio asset details page.