Skip to content

Commit

Permalink
fix: Remove the 10MB limit (#205)
Browse files Browse the repository at this point in the history
Remove the 10MB limit used for file upload
  • Loading branch information
kappratiksha committed Nov 9, 2022
1 parent bf76795 commit 34b8083
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/functions_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 34b8083

Please sign in to comment.