Tariq Albajjali
Tariq Albajjali

Reputation: 337

set_field_upload in grocery crud not rendering

i am trying to use set_field_upload to upload a images in a database field called "photo", the crud is working perfectly for text/dates...etc

But u can't use the file upload

Here is the code

try {
    $crud = new grocery_CRUD();

    $crud->set_table('test');

    $crud->set_field_upload('photo', 'assets/uploads/files');

    $output = $this->grocery_crud->render();
    $this->_example_output($output);

    } catch(Exception $e) {
        show_error($e->getMessage().' --- '.$e->getTraceAsString());
    }

Upvotes: 1

Views: 310

Answers (1)

Tariq Albajjali
Tariq Albajjali

Reputation: 337

I solved the problem by changing the version, i tried 1.5.8 and 1.5.0.

I got it working by using 1.5.5

Upvotes: 0

Related Questions