[TYPO3-english] todo can be improved towards conflict mode naming
Jan Bednarik
info at bednarik.org
Mon Dec 8 16:31:45 CET 2014
I have created extension called "jb_changename" to resolve this.
Jan
Dne 30. 11. 2014 22:33, Jan Bednarik napsal(a):
> Hi all,
>
> I'm struggling with one of my editors, who are uploading different
> images of the same filename and because ExtendedFileUtility doesn't
> support conflictMode "changeName", the old file gets reused.
>
> See this piece of code:
>
> // @todo can be improved towards conflict mode naming
> if ($this->dontCheckForUnique) {
> $conflictMode = 'replace';
> } else {
> $conflictMode = 'cancel';
> }
>
> Any idea how to overcome this? Maybe subclassing ExtendedFileUtility?
> Has someone done it already?
>
> Thanks
>
> Jan
More information about the TYPO3-english
mailing list