Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Support

Admin filepicker - Network error

admin

Started by ontime 7 years ago · 0 replies · 463 views
7 years ago

Hi,

The filepicker does not work in the admin.

On pageload and when clicking it, the following error message appears:

TXT
Fetch Failed:
NetworkError when attempting to fetch resource. 

And the browser console logs this error:

TXT
NetworkError when attempting to fetch resource. at admin.min.js:4:5928
    s http://localhost:8000/user/plugins/admin/themes/grav/js/admin.min.js?9f48728897:4

Here is my .yaml:

YAML
form:

  fields:

    tabs:
      type: tabs
      active: 1

      fields:
        content:
          type: tab
          title: PLUGIN_ADMIN.CONTENT

          fields:
            xss_check:
              type: xss

            details:
              type: section
              title: Details

            header.selected:
              type: filepicker
              label: Image
              folder: '@self'
              preview_images: true
              accept:
                - .png
                - .jpg

            header.media_order:
              type: pagemedia
              label: PLUGIN_ADMIN.PAGE_MEDIA

Version: Grav v1.6.9 - Admin v1.9.4

Suggested topics

Topic Participants Replies Views Activity
Support · by Thomas, 1 week ago
2 50 6 hours ago
Support · by Anna, 2 days ago
2 58 9 hours ago
Support · by Justin Young, 10 hours ago
1 28 10 hours ago
Support · by Duc , 1 week ago
2 63 5 days ago
Support · by Colin Hume, 1 week ago
2 53 5 days ago