I am having some trouble uploading images to wordpress. When I try, I get an error saying “An error occurred in the upload. Please try again later.” But as soon as I visit the library the image is right there. Another issue is when I try to add images to a post or page nothing loads, just a perpetual spinning ball. I am using a custom theme I made for the first time and I know it is not the greatest but I am having no other issues except for this. Any help is appreciated.
PS: I tried deactivating all plugins and that did nothing.
Read more here: Error when uploading and posting images in wordpress