Not sure where to say this. I am trying to upload a file in a form. But it doesn't work, the dropzone is empty. Rest of the form works perfectly. When I look in the console I get the following message:
Uncaught TypeError: Cannot read property 'trim' of undefined
at D.addedfile (form.vendor.js:5)
at D.value (form.vendor.js:5)
at D.value (form.vendor.js:5)
at HTMLInputElement.<anonymous> (form.vendor.js:5)
Part of the frontmatter of the form:
- name: bestand
type: file
multiple: false
autofocus: false
destination: 'user/data/files'
accept:
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet/*
- application/vnd.ms-excel/*
- application/msword/*
- application/vnd.openxmlformats-officedocument.wordprocessingml.document/*
- application/pdf/*
- text/plain/*
underline: true
process:
- email:
from: "{{ config.plugins.email.from }}"
to:
- "{{ config.plugins.email.from }}"
- "{{ form.value.email }}"
subject: "[Aanmelding webinar] {{ form.value.name|e }}"
body: "{% include 'forms/data.html.twig' %}"
content_type: 'text/html'
attachments:
- bestand
- save:
fileprefix: webinar-aanmelding-
dateformat: Ymd-His-u
extension: csv
body: "{% include 'forms/data.txt.twig' %}"
- message: Merci! Wij nemen zo spoedig mogelijk contact op
- display: thank-you
- type: checkboxes
use: keys
Hope somebody can help...