He Folks,
I tried to load some small amount of data and get the following error:
RuntimeError: Data of size 73.8MB exceeds write limit of 50.0MB
Any ideas how to fix it?
Cheers
Chris
He Folks,
I tried to load some small amount of data and get the following error:
RuntimeError: Data of size 73.8MB exceeds write limit of 50.0MB
Any ideas how to fix it?
Cheers
Chris
What version of Streamlit are you using? Old versions used to have a limit of 50MB for file_uploader, but changed to 200MB by default a while back.
To change that limit, you can change the following configuration:
# Max size, in megabytes, for files uploaded with the file_uploader.
# Default: 200
maxUploadSize = 200
https://docs.streamlit.io/en/stable/streamlit_configuration.html#view-all-configuration-options
Great post! Do any of you know what is the max storage for reading a writing files locally using Streamlit? or does that depend on the deployment service provider such as Heroku?
Yeah, thatās mostly the case. The important thing to realize about Streamlit is that there are very few limitations that arenāt browser limitations, or Python limitations. Meaning, the file_uploader limitation of 200MB is just a placeholder to keep people from uploading a 1 TB file. If your instance can handle that, and the Python tornado back-end will let you and the browser will let youā¦then go ahead and change that number ![]()
Same thing with passing huge data volumes from Python to the front-endā¦there are some artificial limits in place, so that you donāt try to render a 10GB dataframe as HTML, because thatās probably not what you mean.
So whenever a limit comes up with Streamlit the core Python library, itās instructive to take a step back and think about your specific use case. In the terms of free hosting, whether Streamlit sharing or Heroku, itās usually a reflection about cost containment (it certainly is for us in the near-term!)
Best,
Randy
Hi Randy, thanks for your help in advance.
I had this same error, but my dataframe is around 10MB and the error message I get is:
RuntimeError: Data of size 57.9MB exceeds write limit of 50.0MB
Iām not sure where the app is getting 57.9MB from. I checked the config file and upped the maxuploadsize to 300 and I still get the same error.
Any ideas what I should do?
Could you confirm what version of streamlit you are using, please?
It would also be useful to confirm āstreamlit config showā has your update in it.
Same issue here as Math.
Iām running a conda venv, if I run the config check it shows Iāve set the max upload size to 500. The only way I figured to fix this was by editing some file a user had mentioned in finding within the library module its self.
Unfortunately, now I started a new venv and have to find that post again!
Iām not an engineer by trade, the whole config.toml has given me more hiccups than anything else with streamlit thus far.
Okay, ironically, I took a few to read the config setup a bit better and realized I needed to actually create the config.toml within my cwd. (it was using my global config.)
Now, when I run āstreamlit config showā I can see the config file is reading from within my file. I can update the port number, it all appears to work fine. The issue is still the max size isnāt working even though it appears to be reflecting properly within the config fileā¦not sure what gives.