reflex icon indicating copy to clipboard operation
reflex copied to clipboard

MiddlewareMixin._preprocess is not called when processing upload requests

Open n0r1z0 opened this issue 10 months ago β€’ 1 comments

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

n0r1z0 avatar Mar 11 '25 05:03 n0r1z0