File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' @siafoundation/renterd-types ' : patch
3
+ ---
4
+
5
+ Fixed an issue where objectUpload only supported the browser File data type. Closes https://github.com/SiaFoundation/web/issues/591
Original file line number Diff line number Diff line change @@ -19,7 +19,13 @@ export type ObjectDownloadPayload = void
19
19
export type ObjectDownloadResponse = Blob
20
20
21
21
export type ObjectUploadParams = { key : string ; bucket : string }
22
- export type ObjectUploadPayload = File
22
+ export type ObjectUploadPayload =
23
+ | File
24
+ | Blob
25
+ | Buffer
26
+ | ArrayBuffer
27
+ | string
28
+ | Record < string , unknown >
23
29
export type ObjectUploadResponse = void
24
30
25
31
export type MultipartUploadPartParams = {
@@ -32,7 +38,7 @@ export type MultipartUploadPartParams = {
32
38
minshards ?: number
33
39
totalshards ?: number
34
40
}
35
- export type MultipartUploadPartPayload = Blob
41
+ export type MultipartUploadPartPayload = Blob | Buffer | ArrayBuffer | string
36
42
export type MultipartUploadPartResponse = void
37
43
38
44
export type RhpScanParams = void
You can’t perform that action at this time.
0 commit comments