Hello,
I've modified user form (frontend) user_profile to add file field upload. Everything is working great. File is saved in folder. But I can't delete that added file by user_profile form. Am I doing something wrong or form plugin can't do that?
GetGrav # v1.7.24
form plugin # v5.1.3
login pugin # v3.6.0
user\plugins\login\pages\profile.md:
custom_file:
type: file
label: A Label
multiple: false
destination: 'page@:/test'
random_name: false
avoid_overwriting: true
limit: 10
accept:
- image/*
user\config\plugins\login.yaml:
fields:
- custom_file
user\accounts\user.yaml:
custom_file:
'user/pages/test/myfile.jpg':
name: myfile.jpg'
type: image/jpeg
size: 33461
path: 'user/pages/test/myfile.jpg'