Hello, i am building a web site in which everyone can create a user profile. Each user is allowed to write a small description of themselves ad attach a PDF file to their profile.
I have set up a blueprint for users with the two customs fields. (text and file)
presentation:
label: Présentation
type: textarea
size: medium
cv:
label: Cv (pdf)
type: files
query: page.documents
multiple: false
uploads:
template: cv
The file must be a pdf, i made it use a file blueprint.
The panel is working properly, allowing me to edit description and upload one pdf file per user.
Users do not have access to the panel.
I have successfully managed to allow users to change their descriptions with a form and the $kirby->user()->update().
$kirby->user($userEmail)->update([
'presentation' => $data['presentation'],
'cv' => $file
]);
However it does not seems to work with this method for files.
Has anyone tried to build something like that ?