diff --git a/app/models/product.rb b/app/models/product.rb index 38540933f..25d73ae09 100644 --- a/app/models/product.rb +++ b/app/models/product.rb @@ -12,7 +12,7 @@ class Product < ActiveRecord::Base belongs_to :platform has_attached_file :tar - validates_attachment_content_type :tar, :content_type => ["application/gnutar", "application/x-compressed", "application/x-gzip"], :message => I18n.t('layout.products.invalid_content_type') + validates_attachment_content_type :tar, :content_type => ["application/gnutar", "application/x-compressed", "application/x-gzip", "application/x-bzip2"], :message => I18n.t('layout.products.invalid_content_type') after_validation :merge_tar_errors