Configuration

This configuration allows WATcycle to handle larger NetCDF file uploads by increasing Streamlit's default file size limits.

How to Configure Streamlit Upload Size

  1. Create .streamlit Folder Open File Explorer: C: → Users → [Your Username] Create a folder named .streamlit (If not allowed, open Command Prompt and run:)

    mkdir .streamlit
  2. Add config.toml File Copy the config.toml from your WATcycle folder into the .streamlit folder.

  3. Edit config.toml Right-click the file → Open with Notepad → Paste this:

    [server]
    maxUploadSize = 1000  # Size in MB (e.g., 1000 = 1 GB)

    Edit the number to increase or decrease the upload limit as needed.

  4. Save the file and restart your Streamlit app.

Last updated