mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-01 07:01:12 +00:00
Set unkown file type
This commit is contained in:
2
utils.py
2
utils.py
@@ -240,7 +240,7 @@ def valid_previewed_file(filename):
|
||||
|
||||
"""
|
||||
fileExt = os.path.splitext(filename)[1][1:]
|
||||
return FILEEXT_TYPE_MAP.get(fileExt)
|
||||
return FILEEXT_TYPE_MAP.get(fileExt) or 'Unkown'
|
||||
|
||||
def get_file_revision_id_size (commit_id, path):
|
||||
"""Given a commit and a file path in that commit, return the seafile id
|
||||
|
Reference in New Issue
Block a user