mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-20 02:48:51 +00:00
video and audio file can be previewed always
This commit is contained in:
@@ -296,6 +296,8 @@ def file_size_exceeds_preview_limit(file_size, file_type):
|
||||
return True, err
|
||||
else:
|
||||
return False, ''
|
||||
elif file_type in (VIDEO, AUDIO):
|
||||
return False, ''
|
||||
else:
|
||||
if file_size > FILE_PREVIEW_MAX_SIZE:
|
||||
err = _(u'File size surpasses %s, can not be opened online.') % \
|
||||
|
Reference in New Issue
Block a user