Documentation
Configuration / upload.overwrite
This options controls if you allow files to be overwritten or not.
You can also configure it to "rename", and if a file with the same name already exists, it will rename it to <filename>_2.<extension>
$moxieManagerConfig['upload.overwrite'] = true;
Possible values:
true | If a file with same name exists, it will be overwritten. |
false | If a file with same name exists, error will be given and file not overwritten. |
rename | If a file with same name exists, new file will be renamed to unique file name. |
Default value is FALSE.