Check the owner of your files, your server must be able to write in your folders.
Never keep 777 on your files/folders for security reasons.
If you have access to your server use these commands:
# change owner for all your Kirby files and folders: root > www-data (I suppose www-data is your web user)
sudo chown -R www-data:www-data *
# change right on all your Kirby files and folders
sudo find /var/www/ -type d -exec chmod 755 {} +
sudo find /var/www/ -type f -exec chmod 644 {} +
In this case “www-data” is the user name used by the server and /var/www/ is the path of your web root folder
If your server has another user name replace “www-data” by your server user name, same for the root path.
That tells you that the files are currently owned by the root user. Now depending on what user name the web server is running under, you have to change this ownership from root to the web server user.