Skip to content

Commit 34b8083

Browse files
authored
fix: Remove the 10MB limit (#205)
Remove the 10MB limit used for file upload
1 parent bf76795 commit 34b8083

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/functions_framework/__init__.py

-3
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@
3535
)
3636
from google.cloud.functions.context import Context
3737

38-
MAX_CONTENT_LENGTH = 10 * 1024 * 1024
39-
4038
_FUNCTION_STATUS_HEADER_FIELD = "X-Google-Status"
4139
_CRASH = "crash"
4240

@@ -262,7 +260,6 @@ def create_app(target=None, source=None, signature_type=None):
262260

263261
# Create the application
264262
_app = flask.Flask(target, template_folder=template_folder)
265-
_app.config["MAX_CONTENT_LENGTH"] = MAX_CONTENT_LENGTH
266263
_app.register_error_handler(500, crash_handler)
267264
global errorhandler
268265
errorhandler = _app.errorhandler

0 commit comments

Comments
 (0)