Feature #22681
closedAdd config 'replace_single' to columns of type 'group/file'
0%
Description
If you have a filed of type 'group/files', that shall have only _one_file (so maxitems=1), if would be greate to have an option, that replaces the exisitng file, if you upload a new one.
At the moment, you first have to delete the existing file, before you upload a new one. This is espessially a problem, when you use 'disable_controls'=>'list' to ge a better looking form field (See #22679).
Solution:
Add option
'replace_single' => 1,
to field-config in TCA.
This should delete the exisiting entry, before adding a new one.
See attached Patch.
(issue imported from #M14432)
Files
Updated by Alexander Stehlik about 14 years ago
+1 on reading and testing
This is really useful. Thanks a lot!
Updated by Alexander Stehlik over 13 years ago
Patch was submitted to Gerrit:
https://review.typo3.org/#change,1142
I attached an extension to make testing a bit easier.
Updated by Alexander Stehlik over 13 years ago
- Target version deleted (
0)
This was fixed in f92873b30c59ca7bc7902617991175834589a11e and can be closed.