Skip Navigation

Resolved

Automatic Hyperlinking HTML Components

Automatic Hyperlinking of Text Components

Completed Polls

Events on Print Version

File uploads with dots in filenames

Headlines Component Document Selection

Headlines Component Leaf Documents

helo email checking

HTTP Headers

Internal link domain mixing

Linking to File Attachments

Listings Component

mailto: links

Personalised events listings

Spam Proofing

Text Component pre text

Translated Template Fragments

Files

file

Sign Up

If you sign up for an account on this web site you can customise elements of this site and subscribe to an email newsletter.

If you have an account on this web site you may login.

If you have an account on this site but have forgotten your user name and / or your password then you can request an account reminder email.

File uploads with dots in filenames

This has been fixed for the Photo and Image components as well as the File component. The functionality goes something like this:

  • Extensions are derived from the text following the last dot instead of the first

  • Except the special case of files that end with .whatever.gz

  • Names/Titles of files are derived from the remaining part of the filename

  • File component Titles now use the same code as the Image and Photo components to make them ‘human readable’ (dashes are changed to spaces, and Words Are Capitalised.

Original report

See the following example. The problem is that the code for deciding on the mime type in templates/component/file/en.html seems to assume that extension starts with the first dot and not the last one.

Also since MKDoc assumes that the title of the file is just up to the first dot it means that the title cannot be properly edited — the title should be upto the last dot.

This has been reported to the mkdoc-dev list: http://lists.webarch.co.uk/pipermail/mkdoc-dev/2005-May/000287.html

<< | Up | >>

This document was last modified by Bruno Postle on 2005-09-09 05:44:05
MKDoc Ltd., 31 Psalter Lane, Sheffield, S11 8YL, UK.
Copyright © 2001-2005 MKDoc Ltd.