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
| url | Yes | The URL to backend endpoint where Storage SDK is running on server. |
37
+
| access | No | The access level for the object. Possible values are `public` and `private`. |
38
+
| addRandomSuffix | No | Whether to add a random suffix to the object name. Default is `false`. |
39
+
| contentType | No | The content type of the object. |
40
+
| contentDisposition | No | The content disposition of the object. Possible values are `inline` and `attachment`. Default is `inline`. Use `attachment` for downloadable files. |
41
+
| multipart | No | Pass `multipart: true` when uploading large objects. It will split the object into multiple parts and upload them in parallel. |
42
+
| partSize | No | The size of the part to upload. Default is `5 * 1024 * 1024` (5 MiB). |
43
+
| onUploadProgress | No | Callback to track upload progress: `onUploadProgress({loaded: number, total: number, percentage: number})`. |
44
+
| config | No | A configuration object to override the [default configuration](/docs/sdks/tigris/using-sdk#authentication). |
45
+
46
+
In case of successful upload, the `data` property will be set to the upload and
47
+
contains the following properties:
48
+
49
+
-`contentDisposition`: content disposition of the object
50
+
-`contentType`: content type of the object
51
+
-`modified`: Last modified date of the object
52
+
-`path`: Path to the object
53
+
-`size`: Size of the object
54
+
-`url`: A presigned URL to the object
40
55
41
56
### Example
42
57
@@ -49,6 +64,7 @@ import { upload } from "@tigrisdata/storage/client";
0 commit comments