Hi !
I am trying to concatenate primary key of the record as prefix to the filename to be uploaded. I was trying to get the primary key in the handle_file_upload function in the library and then concatenate it in the line
$file->name = $this->trim_file_name($name, $type);
so it becomes something like this -
$file->name = get_primary_key.'-'. $this->trim_file_name($name, $type);
However, i dont know how to get the primary key there. Please help, am using the version 1.5.6.
thanks,
Anil