mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Increase size limit for display of html files to 10000000 bytes - mirdeep2 creates very large html objects.
Size limit for display should probably be configurable.
This commit is contained in:
@@ -376,6 +376,8 @@ class DatasetInterface( BaseUIController, UsesAnnotations, UsesHistory, UsesHist
|
||||
raise paste.httpexceptions.HTTPNotFound( "File Not Found (%s)." % data.file_name )
|
||||
|
||||
max_peek_size = 1000000 # 1 MB
|
||||
if isinstance(data.datatype, datatypes.images.Html):
|
||||
max_peek_size = 10000000 # 10 MB for html
|
||||
if not preview or isinstance(data.datatype, datatypes.images.Image) or os.stat( data.file_name ).st_size < max_peek_size:
|
||||
return open( data.file_name )
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user