Method: flask.wrappers.Request._load_form_data
Calls: 10, Exceptions: 1, Paths: 3Back
Path 1: 6 calls (0.6)
1def _load_form_data(self) -> None:
2 super()._load_form_data()
3
4 # In debug mode we're replacing the files multidict with an ad-hoc
5 # subclass that raises a different error for key errors.
6 if (
7 current_app
8 and current_app.debug
9 and self.mimetype != "multipart/form-data"
10 and not self.files
11 ):
12 from .debughelpers import attach_enctype_error_multidict
13
14 attach_enctype_error_multidict(self)
Path 2: 3 calls (0.3)
1def _load_form_data(self) -> None:
2 super()._load_form_data()
3
4 # In debug mode we're replacing the files multidict with an ad-hoc
5 # subclass that raises a different error for key errors.
6 if (
7 current_app
8 and current_app.debug
9 and self.mimetype != "multipart/form-data"
10 and not self.files
11 ):
12 from .debughelpers import attach_enctype_error_multidict
13
14 attach_enctype_error_multidict(self)
Path 3: 1 calls (0.1)
RequestEntityTooLarge (1)
1def _load_form_data(self) -> None:
2 super()._load_form_data()
3
4 # In debug mode we're replacing the files multidict with an ad-hoc
5 # subclass that raises a different error for key errors.
6 if (
7 current_app
8 and current_app.debug
9 and self.mimetype != "multipart/form-data"
10 and not self.files
11 ):
12 from .debughelpers import attach_enctype_error_multidict
13
14 attach_enctype_error_multidict(self)