I have the same problem seeing this pop out "An error has occurred on uploading" when I tried to upload the file (120kb). Firebug didn't issues any error. The response I got from the server is "{"success":false}". My php.ini has upload_max_filesize = 20M. I have an out of the box setup meaning I haven't change any settings yet from GC. I wonder if my db for "upload_file" field which is varchar(500) has something to do in my case.
Here is my code
function kaizen_my(){
$crud = $this->grocery_crud;
$crud->set_table('kaizen2')
->set_subject('Kaizen')
->set_relation('emp_number','users','username')
->set_relation('waste_ID','waste','Waste')
->set_relation('priority_ID','priority','priority')
->set_relation_n_n('party_ID', 'interested_party', 'users', 'KaizenId', 'emp_number', 'username', null, array('users.active_ID'=>'1'))
->where('kaizen2.emp_number',$this->session->userdata('emp_number'));
$crud->columns('KaizenId','emp_number','ProposalTitle','Objectives','DateProposed','waste_ID');
$crud->set_field_upload('upload_file','assets/uploads/files');
$crud->add_fields('ProposalTitle','DateProposed','waste_ID','PotentialCostSavings','SavingsSchedule','Objectives','CurrentMethod','ProposedMethod','priority_ID','ImpDate','party_ID','upload_file');
$crud->edit_fields('ProposalTitle','emp_number','DateProposed','waste_ID','PotentialCostSavings','SavingsSchedule','Objectives','CurrentMethod','ProposedMethod','priority_ID','ImpDate','party_ID','upload_file');
$crud->required_fields('ProposalTitle','DateProposed','priority_ID','ImpDate');
$crud->unset_delete();
$crud->unset_texteditor('Objectives','CurrentMethod','ProposedMethod','Implementor','EvalComments','FirstComments','SecondComments','ProcessComments');
$crud->callback_after_insert(array($this, '_kaizen_my_after_insert'));
$crud->callback_edit_field('emp_number',array($this,'_edit_field_callback_kaizen_my'));
$output = $crud->render();
$this->load->view('main_view',$output);
}
Thank you very much!