From 34b8083c53d88d378718916cc2c20de7665150d4 Mon Sep 17 00:00:00 2001 From: Pratiksha Kap <107430880+kappratiksha@users.noreply.github.com> Date: Wed, 9 Nov 2022 15:24:13 -0800 Subject: [PATCH] fix: Remove the 10MB limit (#205) Remove the 10MB limit used for file upload --- src/functions_framework/__init__.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/functions_framework/__init__.py b/src/functions_framework/__init__.py index 5d18d2ab..fa638505 100644 --- a/src/functions_framework/__init__.py +++ b/src/functions_framework/__init__.py @@ -35,8 +35,6 @@ ) from google.cloud.functions.context import Context -MAX_CONTENT_LENGTH = 10 * 1024 * 1024 - _FUNCTION_STATUS_HEADER_FIELD = "X-Google-Status" _CRASH = "crash" @@ -262,7 +260,6 @@ def create_app(target=None, source=None, signature_type=None): # Create the application _app = flask.Flask(target, template_folder=template_folder) - _app.config["MAX_CONTENT_LENGTH"] = MAX_CONTENT_LENGTH _app.register_error_handler(500, crash_handler) global errorhandler errorhandler = _app.errorhandler