Open gsalin opened 7 years ago
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:
<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>
THanks a lot!
Hi,
Is it possible to limit minimum and maximum file size upload?
Thanks