Hi,
i have a problem with file upload:
i set custom file path for add state like this:
$crud->set_field_upload('filename','assets/uploads/'.date('Ymd'));
and i save this path in record_file_path field in my db;
while for edit state file path is set like this:
$crud->set_field_upload('filename','assets/uploads/'.$result->record_file_path);
where $result->record_file_path comes from db query with where condition "pkey = $state_info->primary_key"
I have two questions:
1 - why in edit state the files that i upload are saved in 'assets/uploads/'.date('Ymd') directory instead of path recovered from my db record?
2 - in list state i cannot see any iimage thumbnails because filepath are set just once and are all the same and of course they are all wrong: can i set correct file paths for each of my records?
Thank you very much for hemlping me.
Davide.