#77136Uploading a file through RTE leads to exception
Description
Reproduce:
- Enable Imags in RTE in EM
- Go to a content element with RTE
- Click on the image icon in the RTE
- Switch to “New Magic Image” or “New Plain Image”
- Check the “Overwrite existing files” checkbox
- Upload any file
Explanation:
The (deprecated) combatibility layer in the DuplicationBehavior Enumeration has been removed with #72426.
Here the value “1” is still passed to the DuplicationBehavior::cast() method wich is no longer mapped to
the correct constant and though leads to the exception.