Use two file upload Button in codeigniter
<p>I'm trying to use two file upload buttons in codeigniter like below </p>

<pre><code>&lt;label class="control-label" for="default"&gt;PO File&lt;/label&gt;
&lt;input type="file"  id="po_file" name="po_file"  multiple="multiple" &gt;
&lt;label class="control-label" for="default"&gt;Invoice File&lt;/label&gt;
&lt;input type="file"  id="in_file" name="in_file"  multiple="multiple" &gt;
</code></pre>

<p>in controller </p>

<pre><code>    $file1 = $_FILES['po_file']['name'];
    $file2 = $_FILES['in_file']['name'];
    $config['upload_path'] = $pathToUpload;
    $config['allowed_types'] = 'pdf';
    $config['overwrite' ] =TRUE;
    $config['max_size'] =0;


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

    if ( ! $this-&gt;upload-&gt;do_upload())
    {
        echo $this-&gt;upload-&gt;display_errors();

        // $this-&gt;load-&gt;view('file_view', $error);
    }
    else
    {

        $this-&gt;upload-&gt;do_upload(file1);
        $upload_data = $this-&gt;upload-&gt;data();
        $file_name = $upload_data['file_name'];
    }
</code></pre>

<p>I tried like this but it gave 
You did not select a file to upload.
Any help how to do this???
thank you</p>