MCPcopy Create free account
hub / github.com/msgbyte/tailchat / onProgress

Function onProgress

client/web/src/components/ImageUploader.tsx:30–34  ·  view source on GitHub ↗
(percent)

Source from the content-addressed store, hash-verified

28 const fileInfo = await uploadFile(file, {
29 usage: props.usage,
30 onProgress(percent) {
31 const uploadProgress = Number((percent * 100).toFixed());
32 console.log(`进度:${uploadProgress}`);
33 setUploadProgress(uploadProgress);
34 },
35 });
36
37 console.log('上传成功', fileInfo);

Callers

nothing calls this directly

Calls 1

logMethod · 0.65

Tested by

no test coverage detected