1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-20 10:58:33 +00:00

video and audio file can be previewed always

This commit is contained in:
lian
2016-09-01 10:58:16 +08:00
parent 47c6fd1e81
commit f45aa40cf2

View File

@@ -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.') % \