How can I add the user_id of the user table to the file upload name?
I have tried:
$filename = 'id_'.<?php $user = JFactory::getUser(); echo $user->id; ?>.'_'.date('YmdHis').'_'.$chronofile['name'];
but it doesn´t work.
I have tried:
$filename = 'id_'.<?php $user = JFactory::getUser(); echo $user->id; ?>.'_'.date('YmdHis').'_'.$chronofile['name'];
but it doesn´t work.