I was trying to upload a jpeg image in WordPress media upload. While uploading, it was showing an error "An error occurred while uploading. Please try again later. "
Error message while uploading

But when I reload the page, the image is showing in the list as below.
After Reload the page

So, the picture is uploading which means there is no folder permission issue, and I have applied:
Wrote file upload limit is PHP code: 286M.
Clear browser cache.
Upgrade WordPress version.
Disable all the plugins I'm using.
Followed their procedure: http://to-developer.com/blog/?p=2146
Followed their procedure: Wordpress file upload issue : An error occurred in the upload. Please try again later
Change in functions.php :
function change_graphic_lib($array) { return array('WP_Image_Editor_GD', 'WP_Image_Editor_Imagick'); }
Followed their procedure: https://mybestofmylife.com/wordpress-media-error
At the last, still, I haven't found any solution.