reflex
reflex copied to clipboard
MiddlewareMixin._preprocess is not called when processing upload requests
Describe the bug
Both MiddlewareMixin._preprocess and MiddlewareMixin._postprocess are called when processing events.
https://github.com/reflex-dev/reflex/blob/5c8104ff5bdc6c39f5f2ef499365331f1a2af541/reflex/app.py#L1616-L1617
https://github.com/reflex-dev/reflex/blob/5c8104ff5bdc6c39f5f2ef499365331f1a2af541/reflex/app.py#L1631-L1632
https://github.com/reflex-dev/reflex/blob/5c8104ff5bdc6c39f5f2ef499365331f1a2af541/reflex/app.py#L1449-L1450
On the other hand, only MiddlewareMixin._postprocess is called when processing upload requests.
https://github.com/reflex-dev/reflex/blob/5c8104ff5bdc6c39f5f2ef499365331f1a2af541/reflex/app.py#L1795