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
Hi,
Is it possible to limit minimum and maximum file size upload?
Thanks
The text was updated successfully, but these errors were encountered:
Yes possible with form_for:
<%= f.attachinary_file_field :content, cloudinary: { transformation: { width: 200, height: 200, crop: :limit } } %>
But for simple_form, couldn't find a way through class AttachinaryInput < SimpleForm::Inputs::Base, so this is what I did but I'm not proud:
class AttachinaryInput < SimpleForm::Inputs::Base
<div class="form-group attachinary required slide_content"> <%= f.label :content, label: '', class: 'control-label attachinary required' %> <%= f.attachinary_file_field :content, cloudinary: { transformation: { width: 200, height: 200, crop: :limit } } %> </div>
Sorry, something went wrong.
THanks a lot!
No branches or pull requests
Hi,
Is it possible to limit minimum and maximum file size upload?
Thanks
The text was updated successfully, but these errors were encountered: