1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 19:00:12 +00:00

show correct file icon when upload file to system repo (#8296)

This commit is contained in:
lian
2025-10-11 17:17:09 +08:00
committed by GitHub
parent 1a81fc9861
commit e6197a657e

View File

@@ -135,6 +135,7 @@ class DirView extends Component {
const fileObj = res.data[0];
let newDirent = new Dirent({
'is_file': true,
'type': 'file',
'obj_name': fileObj.name,
'file_size': Utils.bytesToSize(fileObj.size),
'last_update': (new Date()).getTime()