So I found out recently that you can change the fields that defines the metadata for each file uploaded in EPi Server's File Management system, simply by editing the FileSummary.config
file.
In this FileSummary.config
file I can define fields statically with XForms definitions, but is it possible to dynamically populate fields with for example data from pages or defined site categories?
Edit) I see it's possible to define JavaScript in there so that might be an alternative.
One approach would be to use a control adapter to add some controls to the file summary edit /add control
You would register your adapter in the AdapterMappings.browser file as follows:
You would then need to create a control class that derives from ControlAdapter
Within here you can create and add you own controls to the 'wrapped' EditCustomFileSummary, here's an example I have used previously to add a Tags control to the file summary dialog:
Then you would be able to hook into the save event triggered by the 'Save' control in the summary dialog in order to save your custom field as a dictionary item on the files summary property
How and what controls you add can of course be derived by whatever method works for your scenario.