How to restrict file upload size with Streamlit

In Streamlit, we can restrict the max upload size by specifying a limitation in .streamlit/config.toml, e.g.


maxUploadSize = 5

This works locally, but when uploaded to the hub, the default 200MB limit is available. Is there a way for us to still limit the max file size?