Do not assume the attribute is named file. But instead, ask the replicator to ask the CarrierWaveUploader to tell what the path of the replicable file is.
file
path