Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

附件上传进度条与实际进度不一致 #7000

Open
QingFeng-awa opened this issue Nov 4, 2024 · 2 comments
Open

附件上传进度条与实际进度不一致 #7000

QingFeng-awa opened this issue Nov 4, 2024 · 2 comments
Labels
area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement.

Comments

@QingFeng-awa
Copy link

QingFeng-awa commented Nov 4, 2024

系统信息

使用的哪种方式运行?

Docker

发生了什么?

在附件中心上传较大文件时会出现进度条与实际上传进度不一致的情况。
例如我上传一个461MB的压缩包,实时上传速度大约为0.5~1MB/s,但进度条却在几秒内走完了,最终卡在了100%。

复现步骤

/console/attachments上传附件。

附加信息

目前Halo只有进度条来展示上传进度,但上述中的进度条并没有真正的指出上传进度,这就像个固定的动画。
我认为应该让进度条能够真正展示进度或者提供其他显示进度的(例如显示实时上传速度来让用户推断进度)组件。

@QingFeng-awa QingFeng-awa changed the title 附件上传进度与实际进度不一致 附件上传进度条与实际进度不一致 Nov 4, 2024
@ruibaby
Copy link
Member

ruibaby commented Nov 6, 2024

这个进度的逻辑实际上是正常的,代表文件已经全部到达服务器,但到达服务器之后可能还需要经过处理,所以会导致始终停留在 100%。我不确定这应该如何优化。

ping @halo-dev/sig-halo

/kind improvement
/area core

@f2c-ci-robot f2c-ci-robot bot added kind/improvement Categorizes issue or PR as related to a improvement. area/core Issues or PRs related to the Halo Core labels Nov 6, 2024
@QingFeng-awa
Copy link
Author

这个进度的逻辑实际上是正常的,代表文件已经全部到达服务器,但到达服务器之后可能还需要经过处理,所以会导致始终停留在 100%。

但是这个处理有点太慢了,能不能考虑针对这种情况优化一下。
比如说多线程(?)
#7061

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/core Issues or PRs related to the Halo Core kind/improvement Categorizes issue or PR as related to a improvement.
Projects
None yet
Development

No branches or pull requests

2 participants