Class: WritableFileStream

WritableFileStream(options)

Creates a writable stream for storing a file in an Sbucket

Constructor

new WritableFileStream(options)

Parameters:
Name Type Description
options Object
Properties
Name Type Description
sBucket Sbucket The S-bucket this stream will write to
fileKey String The key for the file to write to
Source:

Methods

destroy(callback)

Destroys and aborts any writes for this stream
Parameters:
Name Type Description
callback Sbucket~unlinkCallback
Source:

Events

error

Triggered if an error occurs
Parameters:
Name Type Description
error Error
Source:

finish

Triggered when data is finished writing
Source: