##// END OF EJS Templates
Attachment content-type is now chomped before being saved....
Jean-Philippe Lang -
r614:5478e5cbae98
parent child
Show More
@@ -38,7 +38,7 class Attachment < ActiveRecord::Base
38 38 if @temp_file.size > 0
39 39 self.filename = sanitize_filename(@temp_file.original_filename)
40 40 self.disk_filename = DateTime.now.strftime("%y%m%d%H%M%S") + "_" + self.filename
41 self.content_type = @temp_file.content_type
41 self.content_type = @temp_file.content_type.chomp
42 42 self.filesize = @temp_file.size
43 43 end
44 44 end
General Comments 0
You need to be logged in to leave comments. Login now