Set upload field
You simply add the field name that you would like to "transform" it to field for uploading and add the path that you would like to upload. Below you can find an example with screenshots.Note: You cannot insert the slash (/) at the beginning of your string. For example if your path is assets/uploads/files from the beggining of your project you cannot insert "/assets/uploads/files", because it will not work.
function employees_management() { $crud = new grocery_CRUD(); $crud->set_theme('datatables'); $crud->set_table('employees'); $crud->set_relation('officeCode','offices','city'); $crud->display_as('officeCode','Office City'); $crud->set_subject('Employee'); $crud->required_fields('lastName'); $crud->set_field_upload('file_url','assets/uploads/files'); $output = $crud->render(); $this->_example_output($output); }