Migrate into custom File Type I am writing the script for a file migration and am using the MigrateDestinationFile method.  I noticed that when I migrate the files that they default to the Document file type.  However, I have created custom file types and want the files to be migrated to those file types.

How can I do so?

I was hoping I could do something like this, but it's not working:

$this-&gt;destination = new MigrateDestinationFile('custom_file_type');
I really wish this was better documented.  In addition to the above you need to add a field mapping to the type:

$this-&gt;destination = new MigrateDestinationFile('custom_file_type');    
$this-&gt;addFieldMapping('type')-&gt;defaultValue('custom_file_type');


That's it!