Since we might be looking at the tip of an iceburg, let's turn on debugging.
Try uploading again. Come back and post what one sees in debug ... just the text of the debug, please, as pictures are sometimes hard to read.
I suspect ownerships/permissions on moodledata + subdirectories, but ....
There's an old doc: https://docs.moodle.org/20/en/Creating_Moodle_site_data_directory
In Ubuntu (version info would be nice to know), the apache2 user is normally www-data and so is group.
'spirit of sharing', Ken