anchor.diff:  		{".c", "text/x-c"},
   		{".csh", "application/x-csh"},
   		{".css", "text/css"},
  +		{".csv", "text/csv"},
   		{".diff", "text/x-diff"},
   		{".doc", "application/msword"},
   		{".docx", "application/vnd.openxmlformats-officedocument.wordprocessingml.document"},
   		{".dot", "application/x-dot"},
  +	    {".dotx", "application/vnd.openxmlformats-officedocument.wordprocessingml.template"},
   		{".dvi", "application/x-dvi"},
   		{".dwg", "application/acad"},
   		{".gif", "image/gif"},
  
positive.code:     {ok, [{mime, guess_mime(File)}]};
  
  identify_file_os(unix, File, OriginalFilename) ->
  	SafeFile = z_utils:os_filename(File),
  	Mime = z_string:trim(os:cmd("file -b --mime-type "++SafeFile)),
  	case re:run(Mime, "^[a-zA-Z0-9_\\-\\.]+/[a-zA-Z0-9\\.\\-_]+$") of
  		nomatch -> 
  			{error, Mime};
  		{match, _} ->
  			case Mime of
  				"text/x-c" ->
  					%% "file" does a lousy job recognizing files with curly braces in them.
  					Mime2 = case guess_mime(OriginalFilename) of
  						"text/" ++ _ = MimeFilename -> MimeFilename;
  						"application/x-" ++ _ = MimeFilename -> MimeFilename;
  						"application/json" -> "application/json";
  						_ -> "text/plain"
  					end,
  					{ok, [{mime, Mime2}]};
  				"application/x-gzip" ->
  					%% Special case for the often used extension ".tgz" instead of ".tar.gz"
  					case filename:extension(OriginalFilename) of
  						".tgz" -> {ok, [{mime, "application/x-gzip+tar"}]};
  						_ -> {ok, [{mime, "application/x-gzip"}]}
  					end;
  				"application/zip" ->
  				    %% Special case for zip'ed office files
  				    case guess_mime(OriginalFilename) of
  				        "application/vnd.openxmlformats-officedocument." ++ _ = OfficeMime ->
  				            {ok, [{mime, OfficeMime}]};
  				        _ ->
  				            {ok, [{mime, "application/zip"}]}
  				    end;
  				_ ->
  					{ok, [{mime, Mime}]}
  			end
  	end.
  
  
  %% @spec identify(ImageFile) -> {ok, PropList} | {error, Reason}
  
negative.code: 		{".ps", "application/postscript"},
  		{".psd", "image/vnd.adobe.photoshop"},
  		{".rar", "application/x-rar"},
          {".rtf", "text/rtf"},
  		{".sh", "text/x-shellscript"},
  		{".sit", "application/x-stuffit"},
  		{".svg", "image/svg+xml"},
  