FileUploadControl.setReplaceDuplicateFiles

If set to true, files with duplicate names will be replaced. If set to false, a unique file will be created with _x appended to the original name. e.g myfile.txt is created as myfile_1.txt if the file already exists.

Further documentation.

Parameters

boolean  replaceDuplicateFiles,