You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If one add n single non-zip-files as solution than the upload limit is n*max_file_size
Therefor I think a possible fix is:
change solutions/forms.py L50
fromif sum(fileinfo.file_size for fileinfo in zip.infolist()) > 1000000:
to if sum(fileinfo.file_size for fileinfo in zip.infolist()) > (max_file_size * len(zip.infolist()):
The text was updated successfully, but these errors were encountered:
When uploading a solution as zip file, than configured
task.max_file_size
is not used:Praktomat/src/solutions/forms.py
Line 50 in 92d1cf5
should use information from
task.max_file_size
Praktomat/src/solutions/forms.py
Lines 32 to 33 in 92d1cf5
If one add
n
single non-zip-files as solution than the upload limit isn*max_file_size
Therefor I think a possible fix is:
change solutions/forms.py L50
from
if sum(fileinfo.file_size for fileinfo in zip.infolist()) > 1000000:
to
if sum(fileinfo.file_size for fileinfo in zip.infolist()) > (max_file_size * len(zip.infolist()):
The text was updated successfully, but these errors were encountered: