Hi. I'm wondering where to paste this snippet that a file upload dialog appears?
I want to have the file upload field in Config/Site, put it in user/config/site.yaml but it didn't work... The upload doesn't appear.
Community guidelines
Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.
Hi. I'm wondering where to paste this snippet that a file upload dialog appears?
I want to have the file upload field in Config/Site, put it in user/config/site.yaml but it didn't work... The upload doesn't appear.
This worked. Thanks to @paul_massendari in the slack channel.
user/blueprints/config/site.yaml
--- yaml
@extends:
'@parent'
form:
fields:
content:
fields:
my_files:
type: file
label: My Files
multiple: true
destination: 'user/download'
random_name: false
avoid_overwriting: false
limit:
filesize: 7
accept:
- application/pdf
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 0 | 1318 | 9 years ago | ||
| 2 | 915 | 9 years ago | ||
| 2 | 4044 | 9 years ago | ||
| 1 | 2920 | 9 years ago | ||
| 3 | 1104 | 9 years ago |