         @fileData     =
           size: @config.file.size
           type: @config.file.type
-          name: @config.file.name
+          name: @config.fileName or @config.file.name
           meta: @config.meta
 
         @fileData = _.extend @fileData, @collection.getExt(self.config.file.name), {mime: @collection.getMimeType(@fileData)}


      check @config, {
        file:            Match.Any
        meta:            Match.Optional Object
        onError:         Match.Optional Function
        onAbort:         Match.Optional Function

      }

      if @config.file
        if @collection.debug
          console.time('insert ' + @config.file.name)
          console.time('loadFile ' + @config.file.name)

        if Worker and @config.allowWebWorkers
          @worker = new Worker '/packages/ostrio_files/worker.js'
