     @objectParams.Bucket ?= bucket
     @objectParams.Key    ?= objectName
 
-    @maxBufferSize = maxBufferSize # TODO
+    @maxBufferSize        = maxBufferSize # TODO
+    @partSize             = partSize or 5242880 # 5MB
+    @verbose             ?= false
+
+
 
     if not @objectParams.Bucket then throw new Error "Bucket must be given"
 

      @emit 'initiated', @uploadId


  handleStream: (stream) ->
    stream.on 'data', (chunk) =>
      if typeof(chunk) is 'string' then chunk = new Buffer chunk, 'utf-8'
      @currentChunk = Buffer.concat [@currentChunk, chunk]

        chunk.progress = false
        chunk.finished = true

        @uploadedParts[currentPartNumber] = data?.ETag

        if err then @emit 'error', err
        @emit 'uploaded', etag: data?.ETag

        next err

    , (err) =>
      if err then console.error 'Upload failed', err
      @pruneParts()


