Upload filename minimum length counts only to first period
Closed, ResolvedPublic


Author: obchodnakorze

The count on the number of characters in a filename is stopped at the first
period. e.g. trying to upload an image called "D. A. Pennebaker CU.jpg" returns
the error "File names must be at least three letters." After some slight
experimentation I found out that removing the periods allowed the file to be
uploaded, hence this bug report.

I doubt this is very common (or, for that matter, very critical); I can think of
only a few people who go by initials, and I imagine most people would try
renaming the file. Maybe just add a short note to the upload page?

Version: unspecified
Severity: normal

bzimport added a project: MediaWiki-Uploading.Via ConduitNov 21 2014, 8:17 PM
bzimport added a subscriber: Unknown Object (MLST).
bzimport set Reference to bz1758.
bzimport created this task.Via LegacyMar 26 2005, 6:29 AM
brion added a comment.Via ConduitMar 26 2005, 6:37 AM

Better handling may be to strip all periods but the last.

bzimport added a comment.Via ConduitMar 26 2005, 7:20 AM

obchodnakorze wrote:

Erm. That's what I mean; that's what I had to figure out to do. :-)(In reply
to comment #1)

brion added a comment.Via ConduitApr 13 2005, 6:48 AM
  • Bug 1883 has been marked as a duplicate of this bug. ***
brion added a comment.Via ConduitMay 1 2005, 7:19 AM
  • Bug 2040 has been marked as a duplicate of this bug. ***
bzimport added a comment.Via ConduitAug 4 2005, 10:24 PM

dbenbenn wrote:

The software should simply count the length to the last period, not
the first. I ran into this bug today with
[[Image:E.T. poster.jpg]]

bzimport added a comment.Via ConduitAug 17 2005, 2:35 PM

felipe.sanches wrote:

in my wiki I allow .tar.gz files, but when I try to upload a file like
pfbgimage-0.02.tar.gz it tells me that ".02.tar.gz" is not allowed.

So, its not a matter of renaming because it would mess with the convention of

the files shoudn´t be renamed and the file extension validator should parse the
filename from right to left. (not necessarilly stopping at the first period from
right to left - see the .tar.gz example)

bzimport added a comment.Via ConduitJun 4 2006, 1:28 AM

robchur wrote:

I remember fixing this just before the 1.6.0 release.

Gilles added a project: Multimedia.Via WebDec 4 2014, 10:51 AM
Gilles moved this task to Done on the Multimedia workboard.

Add Comment