前端页面上传文件时提示不友好
客户信息
- 客户名称: 未知
- 客户目前使用的产品版本: 未知
客户环境基本信息
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
客户环境预检信息
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)
问题信息
问题描述
在项目页面,点击分支旁边的+号,选择上传文件:
在打开的上传文件页面,往提交更改下面的输入框里拖入一个目录,然后点击提交更改
在项目页面就会出现报错
此时打开浏览器的开发者界面,能看到前端的报错提示:
这个地方的提示是否能够更直观一点,直接告诉用户不允许上传目录,而不是直接报错。
经过实际测试,在私有化部署和saas上都复现了该问题,复现所使用的环境是:
- 私有化部署 17.4.2, 浏览器 edge Version 132.0.2957.140 (Official build) (arm64)
- 极狐saas,浏览器 edge Version 132.0.2957.140 (Official build) (arm64)
重现步骤
根据上面的问题描述流程操作即可复现。
相关日志/截屏
客户报错截图:
检查项
- 请根据你所属的部门设置 Team 标签: jihulab/jh-infra/teamwork~146872, TeamPresales, ~Team::PS, ~Team::TS, ~Team::Others
- 请根据紧急程度设置 Urgency 标签: jihulab/jh-infra/teamwork~146879, ~Urgency::Medium, ~Urgency::Low