Migrate Private Files: FILE_EXISTS_REUSE still duplicate files I'm trying to migrate private files (file migration), the problem is even I set file_replace to 'FILE_EXISTS_REUSE' the files are still duplicated (it adds _1 or _2, and so on.). Here is my mapping:


    $this->addFieldMapping('file_replace')
         ->defaultValue('FILE_EXISTS_REUSE');
    $this->addFieldMapping('preserve_files')
       ->defaultValue(FALSE);


Please help!
This solved it for me.  The documentation at this link has been updated to show that you need to use the class prefix:

$this-&gt;addFieldMapping('preserve_files')
  -&gt;defaultValue(1);

$this-&gt;addFieldMapping('file_replace')
  -&gt;defaultValue(MigrateFile::FILE_EXISTS_REUSE);