Skip to content

Commit

Permalink
Addtext/csv content type to attachment allowed content types
Browse files Browse the repository at this point in the history
  • Loading branch information
Senen committed Dec 29, 2017
1 parent 59ec281 commit 6912148
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/models/attachment.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
class Attachment < ActiveRecord::Base
FILE_CONTENT_TYPES = ['application/pdf','image/jpeg', 'image/png',
'application/txt', 'text/plain', 'application/msword',
FILE_CONTENT_TYPES = [
'application/pdf','image/jpeg', 'image/png',
'application/txt', 'text/plain', 'application/msword', 'text/csv',
'application/msexcel', 'application/vnd.ms-excel',
'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet',
'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
Expand Down

0 comments on commit 6912148

Please sign in to comment.