[TYPO3-english] todo can be improved towards conflict mode naming

Jan Bednarik info at bednarik.org
Sun Nov 30 22:33:07 CET 2014


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