⚠ 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

Error read Upload



brunolage

brunolage
  • profile picture
  • Member

Posted 14 January 2016 - 17:58 PM

Sorry my English.

I have a problem for opened the upload.

 

Code>>>

 

public function index()
{
$crud = new grocery_CRUD();
 
$crud->set_table('bm');
 
$crud->set_field_upload('upload','assets/uploads/files');
 
$output = $crud->render();
 
$this->load->view('empresa/index',$output);
}
 
}
 
[attachment=1064:Error.JPG]
 

Amit Shah

Amit Shah
  • profile picture
  • Member

Posted 21 January 2016 - 06:01 AM

Well it seems what its trying to do is render an image that dose not exists .. hence it just tries to push in that url which is the folder where the images are stored. Obviously you wont be allowed to do a directory listing .. security reasons. Hence to avoid this error - i recommend a simple solution .. add blank index.html to the folder - and it should stop giving you this error.

 

Happy GCing :)