That may be because the folder to which you want to upload the files doesn't have write permissions. To check this you can run:
And check the permissions that folder have. To change them you can execute:
sudo chmod 775 FOLDER
Note that you should change the FOLDER placeholder for the folder you want to change the permissions.
Could you please try that?
Thank you and best regards!