Hi,
I’d like to add a file field in account, so registered user can upload a file through /user_profile
page.
I modified pages/user_profile/profile.md
adding:
curriculum:
type: file
label: Curriculum
destination: 'user://accounts/cv'
multiple: false
filesize: 5
accept:
- '.pdf'
and config/plugins/login.yaml
user_registration:
enabled: true
fields:
...
- curriculum
But when I save, the file was not uploaded, registered and saved.
I tried to investigate, I don’t really know, but when I update the profile, at
Row 889 of plugins/login/login.php
, if I dump:
dump($flash->getFilesByFields(true));
it returns an empty array.
Thank you for your help.
I admin panel instead, using admin-addon-user-manager plugin, the file was saved correctly.
Thank you for your help.