How to limit file size and file type in direct upload? #2989
Unanswered
mad-coder-365
asked this question in
Q&A
Replies: 1 comment
-
I think your best bet is to check the size of the file's body and raise an error client side. I'm not sure if there's a server side validation for size, but if there is, that seems like a waste of network and possibly cost. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to limit file size and file type in direct upload? I am using @rails/activestorage also.
I couldn't find anything for Bucket policy.
I am trying to limit it so that users can only upload images with max size 2mb.
Beta Was this translation helpful? Give feedback.
All reactions