Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Plugin admin Unable to upload file : Bad filename

admin

Started by Javi 8 years ago · 2 replies · 1285 views
8 years ago

I have one list field inside another list field and I have problems upload images via admin in the second list field always give me this error Unable to upload file : Bad filename

I have this blueprint for this page:

YAML
title: GDA Blueprint
'@extends':
  type: default
  context: blueprints://pages

form:
  fields:
    tabs:
      type: tabs
      active: 1
      fields:
        content:
          type: tab
          fields:
            header.direcciones:
              name: direccion
              label: 'Direcciones'
              type: list
              style: vertical
              fields:
                .nombredireccion:
                  type: text
                  label: 'Nombre dirección'
                .links:
                  label: 'Links'
                  name: links
                  type: list
                  style: vertical
                  fields:
                    .linkname:
                      type: text
                      label: 'Nombre'
                    .img:
                      type: file
                      label: 'Imagen'
                      destination: 'user/themes/gda/uploads/marcas'
                      accept:
                        - image/*
                    .linkurl:
                      type: text
                      label: 'Url'

Can anyone help me?

last edited 10/29/18 by Javi
7 years ago

Having this issue too.

Suggested topics

Topic Participants Replies Views Activity
Plugins · by DrPen, 3 weeks ago
2 289 3 weeks ago
Plugins · by renedebaaij, 4 weeks ago
1 263 3 weeks ago
Plugins · by Thomas, 4 weeks ago
1 280 4 weeks ago
Plugins · by complanar, 2 months ago
6 600 1 month ago
Plugins · by BenLaKnet, 1 month ago
1 504 1 month ago