You get this error because you don’t have the correct permission set on wp-content/uploads folder. Just solving this issue is not enough, you have to use a FTP client and modify recursively all folder and files access.
Folders need 755 and files 644. Other folders and files may have improper permissions and this is usually a flaw in your website security.