⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Upload field PB



elanouar
  • profile picture
  • Member

Posted 16 May 2013 - 20:57 PM

Hi , :)

Actually I'm trying to insert an upload file into my crud :mellow: . Unfortunately the upload field were displayed as an input filed :blink:  . I joined a screen shot of my crud :) . Would you help me to overpass this pb ?
Best reagrds. :)

 

 

 


davidoster
  • profile picture
  • Member

Posted 16 May 2013 - 22:23 PM

Hell! Did you follow the instructions here?

If you still have a problem just post your controller's code.


elanouar
  • profile picture
  • Member

Posted 16 May 2013 - 22:31 PM

yep i followed all instructions , below the code of my function:

  public function personadd()
    {
        $this->grocery_crud->set_table('personne');
		$this->grocery_crud->set_relation('idGroupe','groupe','nomGroupe'); 		
	       
		
		$this->grocery_crud->columns('idGroupe','file_url');
		$this->grocery_crud->fields('idGroupe','file_url');		
    	$this->grocery_crud->display_as('idGroupe','Groupe');	
	    $this->grocery_crud->set_field_upload('file_url','assets/uploads/xlsxfiles');  
		
	 
		$this->grocery_crud->set_theme('datatables');
 
        $output = $this->grocery_crud->render();
 
        $this->_example_output($output);        
    }

Mem Caliber
  • profile picture
  • Member

Posted 18 May 2013 - 08:38 AM

Hi.. i have same problem too... hope get the solution :)


elanouar
  • profile picture
  • Member

Posted 18 May 2013 - 12:01 PM

not yet ^^


elanouar
  • profile picture
  • Member

Posted 18 May 2013 - 14:06 PM

Hell! Did you follow the instructions here?

If you still have a problem just post your controller's code.

Any help Grocery CRUD Ninja


elanouar
  • profile picture
  • Member

Posted 18 May 2013 - 18:21 PM

Pb resolved. I had not thought to create an url-field into the DB.


Mem Caliber
  • profile picture
  • Member

Posted 18 May 2013 - 18:48 PM

Pb resolved. I had not thought to create an url-field into the DB.

LOL i was thinking that "file_url" is not based on our field name on database... Great! my is problem resolved too... :)