Forum Replies Created

Viewing 1 replies (of 1 total)
  • 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.

Viewing 1 replies (of 1 total)