diff --git a/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md b/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md index d671921e5..1d73d388a 100644 --- a/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md +++ b/versioned_docs/version-latest/04-standard-library/01-cloud/bucket.md @@ -150,6 +150,7 @@ new cloud.Bucket(props?: BucketProps); | **Name** | **Description** | | --- | --- | +| addFile | Add a file to the bucket from system folder. | | addObject | Add a file to the bucket that is uploaded when the app is deployed. | | onCreate | Run an inflight whenever a file is uploaded to the bucket. | | onDelete | Run an inflight whenever a file is deleted from the bucket. | @@ -174,6 +175,40 @@ new cloud.Bucket(props?: BucketProps); --- +##### `addFile` + +```wing +addFile(key: str, path: str, encoding?: str): void +``` + +Add a file to the bucket from system folder. + +###### `key`Required + +- *Type:* str + +The key or name to associate with the file. + +--- + +###### `path`Required + +- *Type:* str + +The path to the file on the local system. + +--- + +###### `encoding`Optional + +- *Type:* str + +The encoding to use when reading the file. + +Defaults to "utf-8". + +--- + ##### `addObject` ```wing