I had the same problem and (after trying all attempts indicated) I solved simply by going to SETTINGS / MEDIA where there is a field that indicates the directory to save images.
It was enough to correct it with the default settings, in general:
wp-contents / uploads
“The simplest solution is always the best.”