As part of a conference speakers registration form individuals are asked to upload multiple files (bio,photo, presentation, etc.) Because there are multiple speakers (around 40+) , and the potential of 3 or more uploaded files for each speaker, there re a lot of uploaded files to manage.
To make organization easier, I have prefixed the uploaded file with the presenters name with this code:
<?php
return $form->data['presenter_name'].'-'.date('Ymd').'_'.$file_name;
?>
So the source (presenter) of the uploaded file is in the file name. So I have a file name which looks like: John Smith-20190324_JohnSmith.pdf
I would like to also add the FieldName ( bio,photo, presentation, etc.) , so that the file name looks like: John Smith-bio--20190324_JohnSmith.pdf
Any ideas?
To make organization easier, I have prefixed the uploaded file with the presenters name with this code:
<?php
return $form->data['presenter_name'].'-'.date('Ymd').'_'.$file_name;
?>
So the source (presenter) of the uploaded file is in the file name. So I have a file name which looks like: John Smith-20190324_JohnSmith.pdf
I would like to also add the FieldName ( bio,photo, presentation, etc.) , so that the file name looks like: John Smith-bio--20190324_JohnSmith.pdf
Any ideas?