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.
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.
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.
Thanks @meduz, will include this in the next plugin update.