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

Set maximum filesize per container #816

Closed
stuartcusackie opened this issue Jun 13, 2022 · 1 comment
Closed

Set maximum filesize per container #816

stuartcusackie opened this issue Jun 13, 2022 · 1 comment

Comments

@stuartcusackie
Copy link

stuartcusackie commented Jun 13, 2022

I have a problem with users uploaded large image files. For example, a 20mb image stored on a Digital Ocean space takes a while to retrieve and process with glide. Too many of these images can have a massive impact on the server.

You might think that I can just set a POST MAX size on PHP, but unfortunately it's not that simple. I have another asset container that allows large audio files to be uploaded.

So if I could set a maximum file size on each container and prevent large image uploads only then that would be swell. I have warned the users against unnecessarily large image files but they upload them anyway.

Thanks!

@jasonvarga
Copy link
Member

Basically #619. You'll want to set a validation rule on the container.

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