You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/packages/StorageBucketApi.ts
+22-6Lines changed: 22 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -74,13 +74,21 @@ export default class StorageBucketApi {
74
74
*
75
75
* @param id A unique identifier for the bucket you are creating.
76
76
* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations. By default, buckets are private.
77
-
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
78
-
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
77
+
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
78
+
* The global file size limit takes precedence over this value.
79
+
* The default value is null, which doesn't set a per bucket file size limit.
80
+
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
81
+
* The default value is null, which allows files with all mime types to be uploaded.
82
+
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
@@ -121,12 +129,20 @@ export default class StorageBucketApi {
121
129
*
122
130
* @param id A unique identifier for the bucket you are updating.
123
131
* @param options.public The visibility of the bucket. Public buckets don't require an authorization token to download objects, but still require a valid token for all other operations.
124
-
* @param options.fileSizeLimit specifies the file size limit that this bucket can accept during upload
125
-
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload
132
+
* @param options.fileSizeLimit specifies the max file size in bytes that can be uploaded to this bucket.
133
+
* The global file size limit takes precedence over this value.
134
+
* The default value is null, which doesn't set a per bucket file size limit.
135
+
* @param options.allowedMimeTypes specifies the allowed mime types that this bucket can accept during upload.
136
+
* The default value is null, which allows files with all mime types to be uploaded.
137
+
* Each mime type specified can be a wildcard, e.g. image/*, or a specific mime type, e.g. image/png.
0 commit comments