stack

Home > @infiniteobjects/models > StorageObject > upload

StorageObject.upload() method

Uploads the given local file to the provided bucket

Signature:

static upload(localPath: string, bucket: string, bucketPath?: string): Promise<StorageObject>;

Parameters

Parameter Type Description
localPath string  
bucket string  
bucketPath string (Optional)

Returns:

Promise<StorageObject>