I have an issue on a site which I have been able to replicate on plainkit and starterkit.
If I add an alt tag field or any field to a files/default.yml blueprint and try to add an alt tag to any file, when I click ‘save’ I get this error:
{
"status": "error",
"message": "Unauthenticated",
"code": 401,
"exception": "Kirby\\Exception\\AuthException",
"key": "error.auth",
"file": "/kirby/config/api/authentication.php",
"line": 14,
"details": [],
"route": "(account/|pages/[^/]+/|site/|users/[^/]+/|)files/([a-zA-Z0-9\\.\\-_%= \\+\\@\\(\\)]+)"
}
This only happens:
a) On the live server; locally its working fine.
b) On files at the ‘site’ level that have been uploaded using the ‘site’ blueprint.
All files on other pages work fine.