Title: Image Upload on Posts
Last modified: January 20, 2024

---

# Image Upload on Posts

 *  Resolved [moste](https://wordpress.org/support/users/moste/)
 * (@moste)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/image-upload-on-posts/)
 * 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](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/image-upload-on-posts/#post-17358494)
 * 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 2 years, 4 months ago by [Jeff Starr](https://wordpress.org/support/users/specialk/).
 *  Thread Starter [moste](https://wordpress.org/support/users/moste/)
 * (@moste)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/image-upload-on-posts/#post-17358543)
 * 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](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [2 years, 4 months ago](https://wordpress.org/support/topic/image-upload-on-posts/#post-17358552)
 * It’s all good. Feel free to post again anytime, always glad to help.
 *  [meduz](https://wordpress.org/support/users/meduz/)
 * (@meduz)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/image-upload-on-posts/#post-17427884)
 * 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](https://wordpress.org/support/users/specialk/)
 * (@specialk)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/image-upload-on-posts/#post-17432026)
 * Thanks [@meduz](https://wordpress.org/support/users/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.

 * ![](https://ps.w.org/user-submitted-posts/assets/icon-256x256.png?rev=2567685)
 * [User Submitted Posts – Enable Users to Submit Posts from the Front End](https://wordpress.org/plugins/user-submitted-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/user-submitted-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/user-submitted-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/user-submitted-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/user-submitted-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/user-submitted-posts/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [Jeff Starr](https://wordpress.org/support/users/specialk/)
 * Last activity: [2 years, 3 months ago](https://wordpress.org/support/topic/image-upload-on-posts/#post-17432026)
 * Status: resolved