Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Maximum upload size exceeded when running local #54

Open
jeremylu43 opened this issue Jan 30, 2025 · 2 comments
Open

Maximum upload size exceeded when running local #54

jeremylu43 opened this issue Jan 30, 2025 · 2 comments

Comments

@jeremylu43
Copy link

Hi,

I'm running ThinkCausal locally from Rstudio and I am attempting to upload a .CSV which is around 29 MB. It says "Maximum upload size exceeded".
"Help me" says "If you are using the weblink, upload files are limited to 10mb. If you are using thinkCausal locally, this does not apply." Is there any way to get around this issue?

Thanks,
Jeremy

@joemarlo
Copy link
Member

Hi @jeremylu43 -

It looks like you're getting blocked by Shiny's default upload size limit. You can easily adjust this by running options() before launching thinkCausal:

max_size_in_mb <- 30
options(shiny.maxRequestSize=max_size_in_mb*1024^2)
thinkCausal::run_app()

Let me know if that fixes it for you.

@gperrett The help menu is misleading as thinkCausal doesn't automatically recognize when its running locally and therefore adjust the upload size limit. We should either adjust the help menu or somehow implement this logic. Let me know what you think.

Here's the line that sets the size limit.

Joe

@jeremylu43
Copy link
Author

Thanks @joemarlo! Changing the max size for Shiny worked

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants