How to configure nginx client_max_body_size in google colab?

Hi all,

  1. I am working with streamlit in google colab with st.file_uploader command.
  2. I am unable to upload files greater than 1MB. I understood that this comes with nginx client_max_body_size configuration which is set to 1MB as default.
  3. The command for streamlit in google colab goes as below:!streamlit run app.py & npx localtunnel --port 8501

How to configure nginx in google colab so that the streamlit file_uploader accepts filesize more than 1MB?

Currently, the error is with status code 413.

Any leads will be appreciated.

Thanks,
Sunag R A.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.