# Error when saving file fields at 'site' level

**URL:** <https://forum.getkirby.com/t/error-when-saving-file-fields-at-site-level/32599>\
**Category:** Questions\
**Created:** [October 2, 2024, 1:17pm UTC](https://forum.getkirby.com/t/error-when-saving-file-fields-at-site-level/32599 "2024-10-02T13:17:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuvoman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/nuvoman/32/11421_2.png) [@nuvoman](https://forum.getkirby.com/u/nuvoman)\
**Post date:** [October 2, 2024, 1:17pm UTC](https://forum.getkirby.com/t/error-when-saving-file-fields-at-site-level/32599/1 "2024-10-02T13:17:06Z")

</div>

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:

```auto
{
  "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.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [October 3, 2024, 8:09pm UTC](https://forum.getkirby.com/t/error-when-saving-file-fields-at-site-level/32599/2 "2024-10-03T20:09:54Z")

</div>

Which Kirby version are you using? Could you please also try clearing your browser cache or ideally try the same actions in a different browser for testing?

---

<div class="post-metadata">

**Author:** ![nuvoman](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/nuvoman/32/11421_2.png) [@nuvoman](https://forum.getkirby.com/u/nuvoman)\
**Post date:** [October 4, 2024, 7:23am UTC](https://forum.getkirby.com/t/error-when-saving-file-fields-at-site-level/32599/3 "2024-10-04T07:23:29Z")

</div>

I’m using the latest Kirby version. I’ve cleared all browser caches and tested on Chrome and Microsoft Edge and get the same error. It’s strange as it only happens from the site.yml and also now discovered that it also only happens when saving additional details on images. PDF details save fine.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [October 4, 2024, 3:32pm UTC](https://forum.getkirby.com/t/error-when-saving-file-fields-at-site-level/32599/5 "2024-10-04T15:32:55Z")

</div>

It’s weird that you only get it when updating image content specifically and also cross-browser. Do you have any image-related plugins installed?
