An upload field for Symphony CMS that dynamically renames files (based on values from other fields in the same entry).
- Upload the
/reflecteduploadfield
folder in this archive to your Symphony/extensions
folder. - Go to System > Extensions in your Symphony admin area.
- Enable the extension by selecting the 'Field: Reflected File Upload', choose 'Enable' from the 'With Selected…' menu, then click 'Apply'.
- You can now add the 'Reflected File Upload' field to your sections.
Compared to Symphony's default upload field Reflected Upload Field comes with the following two additional settings:
- Expression represents the "formula" that's used to generate the reflected filename. You can either use static text or access other fields of the current entry via XPath:
{//entry/field-one} static text {//entry/field-two}
. - Create unique filenames gives you the option to add a unique token to the end of the generated filename. This random token will change whenever you save or resave an entry – so this option guarantees that the generated filenames won't get you into caching-troubles whenever you swap files in an entry.
This extension was initially developed by Simon de Turck and is based on the extensions Unique Upload Field and Reflection Field.