diff --git a/files/__main__.py b/files/__main__.py index 0d0bc4d28..c3155ba79 100644 --- a/files/__main__.py +++ b/files/__main__.py @@ -32,7 +32,7 @@ app.config["SERVER_NAME"] = environ.get("DOMAIN").strip() app.config['SEND_FILE_MAX_AGE_DEFAULT'] = 86400 app.config["SESSION_COOKIE_NAME"] = "session_" + environ.get("SITE_NAME").strip().lower() app.config["VERSION"] = "1.0.0" -app.config['MAX_CONTENT_LENGTH'] = 8 * 1024 * 1024 +app.config['MAX_CONTENT_LENGTH'] = 99 * 1024 * 1024 app.config["SESSION_COOKIE_SECURE"] = True app.config["SESSION_COOKIE_SAMESITE"] = "Lax" app.config["PERMANENT_SESSION_LIFETIME"] = 60 * 60 * 24 * 365 diff --git a/files/helpers/images.py b/files/helpers/images.py index def8054d2..93f1e7c61 100644 --- a/files/helpers/images.py +++ b/files/helpers/images.py @@ -14,12 +14,12 @@ def process_image(file=None, filename=None, resize=0): else: i = IImage.open(filename) except: return "" - # exif = i.getexif() - # for k in exif.keys(): - # if k != 0x0112: - # exif[k] = None - # del exif[k] - # i.info["exif"] = exif.tobytes() + exif = i.getexif() + for k in exif.keys(): + if k != 0x0112: + exif[k] = None + del exif[k] + i.info["exif"] = exif.tobytes() if resize: size = resize, resize