Support » Fixing WordPress » WordPress renames my images

  • Hi all
    Since I uploaded latest WordPress version, I’m having some troubles with the image uploading.

    I use to name my images something like: nate-williams-illustration.gif This kind of naming is good for google image search. But now, every time I upload an image, WordPress renames it as :natewilliamsillustration.gif


    Do you know why ?

    thanks in advance and sorry for the bad english

Viewing 5 replies - 1 through 5 (of 5 total)
  • What version are you using ?

    You said “latest Worpress version”… That could either be WordPress 1.2.2 “Mingusâ€? or a nightly build of WP.

    Nightlies are prone to bugs since they are beta version.
    Whereas Mingus works like a charm.

    It’s WordPress 1.2.2.

    From my limited knowledge of regex line 89 in upload.php should read:
    $img1_name = preg_replace("/[^a-z0-9-_.]/i", "", strtolower($img1_name));

    Note the addition of the -_ which allows correct renaming. This also appears to fix a problem with thumbnails coming up with the right name but the linked filename being wrong in Steve Ivy’s upload.php mod.

    Someone might want to check this doesn’t cause other problems though. 🙂

    Thanks a lot orcnet !

    I have the same problem in WP 1.5.1; “file-name” becomes “filename”. Thanks for the fix.

    WP folks if you’re reading this, do you know about this bug?

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress renames my images’ is closed to new replies.