you did not select a file to upload codeigniter <form method="POST" action="<?php echo base_url() ?>administrator/data_kota_kabupaten/upload" enctype="multipart/form-data"> code example

Example 1: not able to upload .apk file in codeigniter 3.1.11

'apk' => array('application/zip'),

Example 2: upload image in codeigniter 3 source code

<!DOCTYPE html>
<html>
<head>
    <title>Image Upload Results</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <div>
        <h3>Congratulations, the image has successfully been uploaded</h3>
        <p>Click here to view the image you just uploaded
            <?=anchor('images/'.$image_metadata['file_name'], 'View My Image!')?>
        </p>

        <p>
            <?php echo anchor('upload-image', 'Go back to Image Upload'); ?>
        </p>
    </div>
</body>
</html>

Tags:

Misc Example