         out.send payload
         do callback
         return
-
-  c

        .write tmpFile.path, (err) ->
          if err
            tmpFile.unlink()
            return callback err
          out.send tmpFile.path
          do callback

    chunk.then (buffer) ->
      type = fileType buffer
      unless type
        err = new Error 'Unsupported MIME type'
        err.payload = payload
        return callback err
      if type.ext is 'gif'
        tmpFile = new temporary.File
        gm payload
