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

Feature Request: Add a file upload size limit #203

Open
kszalwinski-rbi opened this issue Dec 20, 2023 · 0 comments
Open

Feature Request: Add a file upload size limit #203

kszalwinski-rbi opened this issue Dec 20, 2023 · 0 comments

Comments

@kszalwinski-rbi
Copy link

kszalwinski-rbi commented Dec 20, 2023

Is your feature request related to a problem? Please describe.

I am facing the problem of users who upload huge files to our Sanity through the stanity-plugin-media.
When uploading the assets through stanity-plugin-media non of the custom validators is triggered.

Describe the solution you'd like
I would like to configure that MAX_ALLOWED_ASSET_SIZE environment variable that will define the maximum size of the asset being uploaded through stanity-plugin-media.

Describe alternatives you've considered
Alternatively the property could provided as a custom argument when loading stanity-plugin-media in defineConfig function.

@kszalwinski-rbi kszalwinski-rbi changed the title Add a file upload size limit Feature Request: Add a file upload size limit Dec 20, 2023
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

1 participant