Yup, it works on Streamlit Sharing if you set the config option in .streamlit/config.toml
:
[server]
maxUploadSize=1028
This works in Heroku too. But there you can also specify the setting as a CLI argument, since you have access to changing those.