Commit 4d39ed4
authored
fix(upload-client/multipart): set custom chunk size when starting multipart upload
If a multipart upload is started with a custom part size, the part size must be set in the request to `/multipart/start/` via `part_size`. Otherwise, the default 5 MB part size is used, which causes the subsequent request to `/multipart/complete/` to fail with the following error:
```
{
"error":
{
"status_code": 400,
"content": "Can not complete upload. Wrong parts size?",
"error_code": "MultipartFileCompletionFailedError"
}
}
```1 parent 89191cd commit 4d39ed4
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
| 146 | + | |
| 147 | + | |
147 | 148 | | |
148 | 149 | | |
149 | 150 | | |
| |||
0 commit comments