Answers for "codeigniter function upload 2 gambar berbeda"

PHP
-2

codeigniter function upload 2 gambar berbeda

$config['upload_path'] = './uploads/';

$config['allowed_types'] = 'gif|jpg|png';

$config['max_size'] = '100';

$config['max_width'] = '1024';

$config['max_height'] = '768';



$this->load->library('upload', $config);



// Alternately you can set preferences by calling the initialize function. Useful if you auto-load the class:

$this->upload->initialize($config);

$this->upload->do_upload('gambar');



$config2['upload_path'] = './uploads/';

$config2['allowed_types'] = 'gif|jpg|png';

$config2['max_size'] = '100';

$config2['max_width'] = '1024';

$config2['max_height'] = '768';



$this->load->library('upload', $config2);



// Alternately you can set preferences by calling the initialize function. Useful if you auto-load the class:

$this->upload->initialize($config2);

$this->upload->do_upload('gambar2');
Posted by: Guest on October-20-2021

Code answers related to "codeigniter function upload 2 gambar berbeda"

Browse Popular Code Answers by Language