We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I want to set the upload limit to 5MB, but I am still able to upload a 20MB file.
I'm using the following validator from https://gist.github.com/chrisbloom7/1009861:
validates :file, :file_size => { :maximum => 5.megabytes.to_i }
But my resize_to_fill is dropping my file to 5MB, so the validation is never hit.
resize_to_fill
Is it possible to check the upload limit first and then resize the file ?
The text was updated successfully, but these errors were encountered:
This is available in master, have a look at #1026 to see how it's used.
Sorry, something went wrong.
No branches or pull requests
I want to set the upload limit to 5MB, but I am still able to upload a 20MB file.
I'm using the following validator from https://gist.github.com/chrisbloom7/1009861:
But my
resize_to_fill
is dropping my file to 5MB, so the validation is never hit.Is it possible to check the upload limit first and then resize the file ?
The text was updated successfully, but these errors were encountered: