File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 33import time
44
55import cachetools
6+ import large_image .config
67import orjson
78from girder import logger
89from girder .constants import AccessType
@@ -134,7 +135,8 @@ def process_annotations(event): # noqa
134135 logger .error ('Could not load models from the database' )
135136 return
136137 try :
137- if file ['size' ] > 1 * 1024 ** 3 :
138+ if file ['size' ] > int (large_image .config .getConfig (
139+ 'max_annotation_input_file_length' , 1024 ** 3 )):
138140 raise Exception ('File is larger than will be read into memory.' )
139141 data = []
140142 with File ().open (file ) as fptr :
Original file line number Diff line number Diff line change 4040 "tinycolor2" : " ~1.4.1" ,
4141 "url-search-params-polyfill" : " ^8.1.1" ,
4242 "vue" : " ~2.6.14" ,
43- "vue-template-compiler" : " ~2.6.14" ,
44- "vue-loader" : " ~15.9.8" ,
4543 "vue-color" : " ^2.8.1" ,
44+ "vue-loader" : " ~15.9.8" ,
45+ "vue-template-compiler" : " ~2.6.14" ,
4646 "webpack" : " ^3"
4747 },
4848 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments