mirror of
https://github.com/modrinth/code.git
synced 2026-08-31 03:55:59 +00:00
fix: ditch files v0
This commit is contained in:
@@ -147,7 +147,8 @@ Built-in features include authentication, node auth, retries, circuit breaking,
|
||||
Upload endpoints return an `UploadHandle<T>` with progress and cancellation support:
|
||||
|
||||
```ts
|
||||
const upload = client.kyros.files_v0.uploadFile(path, file)
|
||||
await client.kyros.files_v1.ensureFile(worldId, path)
|
||||
const upload = client.kyros.files_v1.uploadFile(worldId, path, file)
|
||||
|
||||
upload.onProgress(({ progress }) => {
|
||||
console.log(Math.round(progress * 100))
|
||||
|
||||
Reference in New Issue
Block a user