aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancis Irving <francis@mysociety.org>2010-07-22 02:02:51 +0100
committerFrancis Irving <francis@mysociety.org>2010-07-22 02:02:51 +0100
commit66789f1adf7f1a0f06c29fc3fca9faea71fb92d5 (patch)
tree247c2951e5f49adb5cdba498cfec03b0a1ae2ccc
parentb8f1047ed46ba3ac08cbb9bf62796b2940eac378 (diff)
Show it is docx
-rw-r--r--app/models/incoming_message.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 81c9ade0f..6e3c043b6 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -350,8 +350,10 @@ class FOIAttachment
def name_of_content_type
if self.content_type == 'text/plain'
return "Text file"
- elsif self.content_type == 'application/vnd.ms-word' or self.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
+ elsif self.content_type == 'application/vnd.ms-word'
return "Word document"
+ elsif self.content_type == 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'
+ return "Word document - XML"
elsif self.content_type == 'application/vnd.ms-excel'
return "Excel spreadsheet"
elsif self.content_type == 'application/pdf'