         console.info "Meteor.Files Debugger: [MeteorFileUnlink]" if @debug
         self.remove.call cp(_insts[inst._prefix], inst), inst.search
 
-      _methods[self.methodNames.MeteorFileWrite] = (file, fileData, meta, first, chunksQty, currentChunk, randFileName) ->
+      _methods[self.methodNames.MeteorFileWrite] = (file, fileData, meta, first, chunksQty, currentChunk, totalSentChunks, randFileName, part, partsQty, fileSize) ->
         console.info "Meteor.Files Debugger: [MeteorFileWrite]" if @debug
         # check file, Object
         check fileData, Object

          _collectionName: self.collectionName
          _storagePath:    self.storagePath
          _downloadRoute:  self.downloadRoute
        
        if first
          fs.outputFileSync path, binary, 'binary'
        else
          fs.appendFileSync path, binary, 'binary'


        if chunksQty - 1 is currentChunk
          delete result.chunk
          result._id = self.collection.insert result
          console.info 'The file ' + fileName + ' (binary) was saved to ' + path if self.debug

        return result


          type:       fileData.type
          size:       fileData.size
          chunk:      currentChunk
          last:       last
          isVideo:    fileData.type.toLowerCase().indexOf("video") > -1
          isAudio:    fileData.type.toLowerCase().indexOf("audio") > -1
          isImage:    fileData.type.toLowerCase().indexOf("image") > -1
