Skip to content

[Feature] The page closes without warning during file upload, causing the upload to be interrupted #9736

@jimes222

Description

@jimes222

1Panel Version

社区版 1.10.32-LTS

Please describe your needs or suggestions for improvements

问题描述: 在使用文件上传功能时,如果正在上传文件的过程中误点击关闭浏览器窗口,系统未弹出任何确认提示框(例如“文件正在上传,确定要离开此页面吗?”),导致文件上传可能中断,用户数据丢失。

复现步骤:

打开文件上传页面并开始上传较大的文件;

在上传过程中,点击关闭浏览器标签页或窗口;

页面直接关闭,没有任何确认提示。

预期行为: 上传过程中应弹出确认提示,提醒用户“上传尚未完成,确认要离开吗?”以避免误操作。

实际行为: 页面会直接关闭,上传中断,无任何提醒。

Please describe the solution you suggest

No response

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions