Unable to upload images into the media library

With help from @simongcc and https://fancythemes.com/fix-image-upload-issue-wordpress I’ve found that the Settings > Media > Store uploads in this folder value was not correct and after updating with the correct path I was able to successfully upload pictures.