• Mike

    (@hobbleknee)


    After upgrading to WP 4.0, media upload is broken.
    If I upload an image named “whatever.jpg”, the file is renamed to “1” with no file extension. The next file I upload is renamed to “2” and so on.
    I’ve tried disabling all plugins, even though I don’t have any that effect media. And I’ve tried changing the “Organize my uploads into month- and year-based folders” setting to see if that would change anything.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi hobbleknee,

    are you positive that this is only since you updated to WP 4.0?
    From what I read here this smells more like a server side issue with things like storage capacity running out or a change in permissions on the php upload folder.
    In addition, check if you are exceeding the maximum allowed upload size for php.

    Thread Starter Mike

    (@hobbleknee)

    Thanks for the reply ??

    Yes, I’m pretty sure it’s a 4.0 issue. I downgraded to 3.8.4 and it works normally again. Before I downgraded though, I did check the permissions in the upload folder and it looked good too. I have plenty of storage too, and the files I was uploading were tiny.

    Gary Cornelisse

    (@gcornelisse)

    I’m having the same issue too. Here’s an example of what I have for one image in the uploads…

    -rw-rw-r-- 1 daemon daemon 109098 Nov 11 01:46 283
    -rw-rw-r-- 1 daemon daemon   3077 Nov 11 01:46 283-100x60.
    -rw-rw-r-- 1 daemon daemon   4970 Nov 11 01:46 283-140x94.
    -rw-rw-r-- 1 daemon daemon   5437 Nov 11 01:46 283-150x99.
    -rw-rw-r-- 1 daemon daemon   7999 Nov 11 01:46 283-180x160.
    -rw-rw-r-- 1 daemon daemon  12444 Nov 11 01:46 283-280x175.
    -rw-rw-r-- 1 daemon daemon  20380 Nov 11 01:46 283-280x350.
    -rw-rw-r-- 1 daemon daemon  14653 Nov 11 01:46 283-300x200.
    -rw-rw-r-- 1 daemon daemon  32905 Nov 11 01:46 283-500x331.
    -rw-rw-r-- 1 daemon daemon  39575 Nov 11 01:46 283-560x371.
    -rw-rw-r-- 1 daemon daemon  48453 Nov 11 01:46 283-560x424.
    -rw-rw-r-- 1 daemon daemon  38726 Nov 11 01:46 283-580x348.
    -rw-rw-r-- 1 daemon daemon   2366 Nov 11 01:46 283-75x50.
    -rw-rw-r-- 1 daemon daemon  41744 Nov 11 01:46 283-e1415670385257.jpg

    But, in the media library the path to the file is /283-e1415670385257. with no extension.

    Maybe this will help someone to figure this out faster than I can. I have to solve this ASAP for a large, high traffic site we just upgraded to 4.0.

    I’m experiencing the same problem on a CentOS 4 server running PHP 5.2.

    My first thought was that WordPress couldn’t resolve the MIME type, but clicking on the image shows “File type: image/png” in the details pane.

    File size and server space isn’t the issue; the files I’m uploading are tiny 512px square PNGs, and there are several GBs free on the partition.

    The problem seems to have arisen since the upgrade to 4.0.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘image files renamed and missing extensions’ is closed to new replies.