Home > @infiniteobjects/models > StorageObject > upload
Uploads the given local file to the provided bucket
Signature:
static upload(localPath: string, bucket: string, bucketPath?: string): Promise<StorageObject>;
Parameter | Type | Description |
---|---|---|
localPath | string | |
bucket | string | |
bucketPath | string | (Optional) |
Returns:
Promise<StorageObject>