Can't upload Files to the site folder

I am still in dev but suddenly I had problems to upload files to the site folder.

I created a setup with a media section in the site element where all files should be stored. This worked for a while but now I get errors and I can’t wrap my head around it to find the source.

This is the error that I get when I try to upload a file:

Error: this file cannot be created

When I try to change the text in one of the existing files in the .txt file it get this error:

Error: Unauthenticated

I can create files on other pages.


This is the media section in the site.yml:

label: Medien
icon: file-image

columns: 
  - width: 1/2
    sections:
      allImages:
        label: " "
        type: files
        template: image
        # query: site.index.files #look for images outsite of the site element
        layout: cards
        size: tiny
        image: 
          cover: true
  
  - width: 1/2
    sections:
      pdfs:
        label: " "
        type: files
        template: pdf
        image:
          cover: true

The image file template file/image.yml:

title: Image
accept:
  extension: jpg, png, webp

fields:
  alt:
    label: Alt Text
    type: text
    width: 1/2
    required: true
  caption:
    label: Caption
    type: textarea
    width: 1/2

And this is the fields/images.yml field that I extend everywhere on the page where images are used:

label: Bilder
type: files
query: site.images.filterBy('template', 'image')
uploads:
  parent: site
  template: image
image:
  cover: true
  ratio: 3/2

Has anybody ever experienced something similar?
It looks like there is an issue with the rights to write in this folder or on the server but I have no plan how these things work.

What is your user role? This error is show when the user doesn’t have permission to create a file. Please check the permissions in the user blueprint for that role.

My user role is admin:

title: Admin

description: This account has access to everything

image:
  icon: user

permissions:
  access:
    settings: true
    account:	true
    panel:	true
    users:	true
    site:	true
    system:	true
    languages: true

  files:
    changeName:	true
    create:	true
    delete:	true
    replace:	true
    update:	true

extends: sections/user-info

I also created a new user also with admin rights that can’t create files.

I tried to find a restriction I “accidentally” added to the site anywhere but I could not find one.

Btw I am working with the Kirby Vite setup. So the accounts are stored outside of the site folder inside a storage folder.

I just found out that it’s not working because of the use of the retrotree plugin.

When I use it in my site.yml:

tabs:
  # some other tabs

  media: tabs/media

  allPages:
      label: Alle Seiten
      icon: folder-structure
      
      sections:
        overview:
          headline: Seitenübersicht
          type: retrotree
          showSlug: false
          showPageIcon: true
          enableTreeCollapse: true
          toggleTextOpen: Collapse All
          toggleTextClosed: Expand All
          enableTreeDisplayDepth: false

I am not able to to add or remove files anymore. Once i command it out it works again. Also on other pages I can still upload or remove files with retrotree active.

Any ideas why that is? And how i can solve this so I can still use retrotree?

This plugin is for Kirby 3, but you are on Kirby 4. so probably not compatible anymore

Alright too bad, I’m really fond of the Retrotree page structure.

Do you know a different solution that works to get a page tree structure?