forked from MarseyWorld/MarseyWorld
consistency
parent
b99bc05bb3
commit
4db24f2ecf
|
@ -81,7 +81,7 @@ def process_audio(file, v):
|
|||
size = os.stat(old).st_size
|
||||
if size > MAX_IMAGE_AUDIO_SIZE_MB_PATRON * 1024 * 1024 or not v.patron and size > MAX_IMAGE_AUDIO_SIZE_MB * 1024 * 1024:
|
||||
os.remove(old)
|
||||
abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for {patron.lower()}s)")
|
||||
abort(413, f"Max image/audio size is {MAX_IMAGE_AUDIO_SIZE_MB} MB ({MAX_IMAGE_AUDIO_SIZE_MB_PATRON} MB for {patron}s)")
|
||||
|
||||
extension = guess_extension(file.content_type)
|
||||
if not extension:
|
||||
|
|
Loading…
Reference in New Issue