   sendFiles: (request) ->
     return unless @outPorts.file.isAttached()
     for name, obj of request.files
-      @outPorts.file.send(obj)
+      @outPorts.file.beginGroup uuid()
+      @outPorts.file.send obj
+      @outPorts.file.endGroup()
 
 exports.getComponent = -> new ReceiveFiles

        @sendError("No files attached")
    @inPorts.in.on 'disconnect', () =>
      @outPorts.file.disconnect() if @outPorts.file.isConnected()

  sendError: (msg) ->
    @error new Error msg

noflo = require 'noflo'
express = require 'express'
uuid = require 'node-uuid'

class ReceiveFiles extends noflo.Component
  icon: 'files-o'
