ruby on rails - How to disable paperclip file extension limits? -


I want to remove the content type limits for uploading files for my needs. I tried to:

  validates_attachment_content_type: attachment ,: content_type = & gt; ['/' Image./.**Z/ ',' Application / * ']   

but that does not work, what changes do I make to get all the file types It should be a matter of removing only the line line is not necessary to fully paperclip work.

Update:

This has changed to the recent paperclrip edition. Now you need to specify that you do not want to validate the content with this topic:

  do_not_validate_attachment_file_type: attachment    

Comments

Popular posts from this blog

Java - Error: no suitable method found for add(int, java.lang.String) -

java - JPA TypedQuery: Parameter value element did not match expected type -

c++ - static template member variable has internal linkage but is not defined -