Closed enryH closed 4 months ago
When I try locally I have the same issue as issue #308 (was corrected by @Julian, works well now when uploading a file on cubimed). It says that the file is too big.
It worked for me without any issues.
It's probably the local configuration issue I wrote about before. Modify the webinterface/.streamlit/config.toml
the following way. @julianu Did you add a maximum file size item?
[theme]
base = "light"
[server]
enableStaticServing = true
# added:
enableXsrfProtection = false
enableCORS = false
# julians addition in #308 ?
maxUploadSize = 500
It's a security feature for local execution to increase security.
Yes, I set the maxUploadSize
to 2 GB on the server for now.
What are these two for?
enableXsrfProtection = false
enableCORS = false
Thanks Henry, it works very nicely :)
@enryH should we change the webinterface/.streamlit/config.toml
file in the repo?
@enryH should we change the
webinterface/.streamlit/config.toml
file in the repo?
This is a question for @julianu . I think we should rather document it as it's a security feature for local execution which should not be deactivate when published. So it will depend on how the server is configured now.
Yes, I set the
maxUploadSize
to 2 GB on the server for now.What are these two for?
enableXsrfProtection = false enableCORS = false
If I do not set it, my browser does not allow to load files from the local disk. It's probably a security feature.
Closes #310