Skip to content

Commit

Permalink
fix: docs for upload and update object
Browse files Browse the repository at this point in the history
they shouldn't contain the bucketId
  • Loading branch information
inian committed May 24, 2021
1 parent 834de2a commit 133ea2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/StorageFileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class StorageFileApi {
/**
* Uploads a file to an existing bucket.
*
* @param path The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param path The relative file path. Should be of the format `folder/subfolder/filename.png`. The bucket must already exist before attempting to upload.
* @param file The File object to be stored in the bucket.
* @param fileOptions HTTP headers. For example `cacheControl`
*/
Expand Down Expand Up @@ -70,7 +70,7 @@ export class StorageFileApi {
/**
* Replaces an existing file at the specified path with a new one.
*
* @param path The relative file path including the bucket ID. Should be of the format `bucket/folder/subfolder`. The bucket already exist before attempting to upload.
* @param path The relative file path. Should be of the format `folder/subfolder`. The bucket already exist before attempting to upload.
* @param file The file object to be stored in the bucket.
* @param fileOptions HTTP headers. For example `cacheControl`
*/
Expand Down

0 comments on commit 133ea2c

Please sign in to comment.