I managed to find the type of content that will be used as follows:
gem install mime-types
and added to my rake task:
require 'mime/types'
Then I burst into the subtitle and used
MIME::Types.type_for(tmp.path).first.content_type
which allowed me to add the correct mime type to the model check:
application/xml
I'm not sure why the files are / xml application, when the loaded forms are text / xml, but in retrospect, a pretty obvious fix!