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

How can I add a seperate action listener to all 14 of my buttons at once that can determine player turn?(java) -

php - Sorting an multidimension array using usort fails -

Simple file compression in C -