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) -

c# - passing input text from view to contoller with FacebookContext using Facebook app -

Calling a C++ function from C# by passing a string with variable size to it -