* fixed Issue 43: Microsoft Visio download problem
git-svn-id: http://redmine-dmsf.googlecode.com/svn/trunk/redmine_dmsf@62 5e329b0b-a2ee-ea63-e329-299493fc886d
This commit is contained in:
parent
2735594603
commit
8a937a056e
@ -95,9 +95,8 @@ class DmsfFileRevision < ActiveRecord::Base
|
||||
|
||||
def detect_content_type
|
||||
content_type = self.mime_type
|
||||
if content_type.blank?
|
||||
content_type = Redmine::MimeType.of(self.disk_filename)
|
||||
end
|
||||
content_type = Redmine::MimeType.of(self.disk_filename) if content_type.blank?
|
||||
content_type = "application/octet-stream" if content_type.blank?
|
||||
content_type.to_s
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user