fritzmg / contao-store-uuid
Mini extension which integrates a storeFormData and a updatePersonalData hook to automatically convert uploaded file paths to UUIDs.
Fund package maintenance!
fritzmg
Installs: 948
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 3
Type:contao-module
Requires
- php: >=5.6
- contao-community-alliance/composer-plugin: ^2.4 || ^3.0
- contao/core-bundle: ^3.5 || ^4.4
Replaces
- contao-legacy/store_uuid: 1.1.0
README
Contao Store UUID
Mini extension which integrates a storeFormData and a updatePersonalData hook to automatically convert uploaded file paths to UUIDs.
storeFormData
The extension checks if there is a DCA available for the target table and then checks if the field is a single fileTree input and converts the file path to an UUID before saving it to the database.
updatePersonalData
The extension checks if there is a DCA available for an uploaded file and then checks if the field is an upload field (fileTree backend widget is mapped to upload field by the personal data module) and then stores the uuid if the file is stored in the file system.
For DCA fields marked as multiple a single file is saved and the correspondig order field is also updated (if defined).