หากเราต้องการทำฟอร์มอัพโหลดรูปภาพ หรือ ไฟล์ บน Codeigniter ก็สามารถทำได้ไม่ยาก เพียงไม่กี่ขั้นตอนดังนี้เลย แบบรวบรัดตัดตอน
<form method="post" enctype="multipart/form-data">
<input type="file" name="file_upload">
<input type="submit" name="save" value='upload'>
</form>
public function formupload()
{
if($this->input->post('save'))
{
$config['upload_path'] = './uploads/products/';
$config['allowed_types'] = 'gif|jpg|png|jpeg';
$config['max_size'] = 2000;
$config['max_width'] = 1500;
$config['max_height'] = 1500;