Last modified: 2013-10-23 21:12:41 UTC
Now it is possible to upload images with names as long as 255 characters into MediaWiki. It is correct, because filename length limit is such in most filesystems. But when MW generates thumbnails, it prepends thumbnail width to the filename limit (in the '500px-' format). So if original file name is too long, the thumbnail isn't generated because it's name length exceeds the limit. I suggest cutting thumbnail filenames and submitted a patch to Gerrit: https://gerrit.wikimedia.org/r/#change,5213
(In reply to comment #0) > Now it is possible to upload images with names as long as 255 characters into > MediaWiki. When did that happen? I thought they were supposed to be limited to 240 bytes since when they get archived they have the timestamp pre-pended to the filename.
Hm. Thanks. 1.18.2 permits it, I didn't know it was fixed (bug 30202). I'm closing the bug.
By the way, can I remove my commit from Gerrit?
(In reply to comment #2) > Hm. Thanks. 1.18.2 permits it, I didn't know it was fixed (bug 30202). I'm > closing the bug. Wow I had no idea that was so new, I thought it was always like that. (In reply to comment #3) > By the way, can I remove my commit from Gerrit? I think there's some way you can "abandon" commits. I don't know how though.
Just as a random note (for reference sake): If the thumbnail name is too big, we now shorten it by replacing the filename with "thumbnail" e.g. 120px-thumbnail.jpg (By default we do this if >255. On Wikimedia we do this if > 160 characters).