Thank you very much hannaramos. Your solution worked like a charm!!
I had the exact same problem and solved it. I didn’t have a .htaccess file in my wordpress folder, which seemed to be the problem.
I wasn’t sure how to make one, but remembered WordPress gives you an example when you try to change the permalink structure. So I copied the example (admin panel:settings/permalinks page) made a textfile called .htaccess and uploaded it to the main wordpress folder.
Problem fixed. Uploads working again. Hope this works for you too.