• Resolved moste

    (@moste)


    I’ve been using User Submitted Posts since last year. It was working ok – images being uploaded and displayed.

    But now when users submit a post with an image attached, the image looks like it uploads okay, but when I submit and look at the post the image doesn’t display. When I check the media library I can see that there is a media item there with the correct name and link to the post, but the actual image isn’t there.

    Is there any know issue with upload? – it seems to be there that the problem is.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeff Starr

    (@specialk)

    No known issues regarding image uploads. But if you can provide basic steps to repeat the issue on default WP install, I would be glad to investigate and try to resolve any error asap.

    • This reply was modified 1 year, 2 months ago by Jeff Starr.
    Thread Starter moste

    (@moste)

    Looks like a wild goose chase. Sorry about that. It’s fine on another laptop and also on a tablet. I think I have to blame the issue on the original (old) laptop I used. It’s happening on my live site and local install … I’m sure it’s got to be at my end. I tried the old reboot trick etc. to no avail … ho hum … I’ll keep digging.

    Thanks so much for your quick response, and sorry for the red herring.

    Plugin Author Jeff Starr

    (@specialk)

    It’s all good. Feel free to post again anytime, always glad to help.

    I’ve had similar problem with the plugin. But in my case everything worked fine on my end and the users had some problems with uploading images.

    After some digging in the source code i found the error – in line 1172 of file user-submitted-post.php.

    In the plugin you are checking if the extension exists in array, the problem is that in_array isn’t case insensitive and my users were uploading files with extension .JPG, not .jpg. I’ve made a fix for that, doing strtolower on $ext parameter and now everything works fine:

    if (in_array(strtolower($ext), array(‘jpg’, ‘jpeg’, ‘jpe’, ‘gif’, ‘png’, ‘bmp’, ‘tif’, ‘tiff’, ‘ico’, ‘webp’, ‘heic’, ‘heif’, ‘svg’))){}

    Please update the plugin so it will handle uppercase extensions.

    Plugin Author Jeff Starr

    (@specialk)

    Thanks @meduz, will include this in the next plugin update.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Image Upload on Posts’ is closed to new replies.