After upload file, error: The JSON response of the API could not be parsed

Hi,

I have a trouble with files in my panel. I made a blueprint with a files field and a folder files and au blueprint default.yml. for the files. I can upload my image, but when it’s upload, my image doesn’t display (fig. 1). When I want to edit the file (caption and title herited from the default blueprint) I got this pop up (fig. 2).


fig.1


fig. 2

I’m running php local built in server, my terminal display this error : [404]: GET /api/pages/equipe/files/image.jpg?view=panel - No such file or directory. That is weird because the image is in the content folder, but the text file related is empty.

There what the console is displaying (fig 3 when I’m on the page in the panel and fig 4 when I’m trying to edit my image) .


fig. 3


fig.4

For information I’m runing php 7.4 and kirby 3.5.7

Thanks for you help

What errors do you see in the network tab?

Could you also please post the file blueprint?

This is what I see :

And this is my file blueprint :

title: File

columns:
  main:
    width: 1/2
    sections:
      content:
        type: fields
        fields:
          caption:
            label: Caption
            type: text
            size: medium
  sidebar:
    width: 1/2
    sections:
      meta:
        type: fields
        fields:
          alt:
            label: Alternative Text
            type: text
          link:
            label: Link
            type: url

Have you tried to remove the media folder and clear the browser cache?

Yes, and still got this error. It’s weird, that’s my console log saying my server can’t get the media/plugins/index.css and media/plugins/index.js

Ok, I think it’s a problem with my php installation !