Deprecation: #55419 - Streamline file conflict mode handling¶
See Issue #55419
Conflicts in file names and folder names when uploading new files or creating new folders are now handled
uniformly with constants within the core. Therefore a new enumeration has been introduced to provide the available
Provided constants are:
Before this change there were two sets of strings used to define the behavior upon conflicts.
As they are redundant they are now represented by a new set of constants:
All usages of strings of the former sets have been replaced with their counterparts from the new set. In the enumeration the former values have been mapped to the new values and marked for deprecation.
renameNewFile for file conflict handling will result in a deprecation log entry.
All third party code that calls one of the listed methods with
$conflictMode either set to
Use the provided enumeration
$resourceStorage->copyFile($file, $targetFolder, 'target-file-name', DuplicationBehavior::RENAME);