How to get image width size during upload using Ajaxupload Codeigniter?
<p>I want to get image width size during upload image.</p>

<p>Code: </p>

<pre><code>for ($i = 0; $i &lt; $number_of_files; $i++) {
    $_FILES['file']['name'] = $files['file']['name'][$i];
    $_FILES['file']['type'] = $files['file']['type'][$i];
    $_FILES['file']['tmp_name'] = $files['file']['tmp_name'][$i];
    $_FILES['file']['error'] = $files['file']['error'][$i];
    $_FILES['file']['size'] = $files['file']['size'][$i];
    $_FILES['file']['image_width'] = $files['file']['image_width'][$i];

    $this-&gt;image_lib-&gt;initialize($config);
    $this-&gt;image_lib-&gt;watermark();

    if (!$this-&gt;image_lib-&gt;watermark()) {
        echo $this-&gt;image_lib-&gt;display_errors();
}
</code></pre>

<p>But when i print </p>

<pre><code>print_r($_FILES['file']);
</code></pre>

<p>It show like this</p>

<pre><code>Array
(
    [name] =&gt; 01.jpg
    [type] =&gt; image/jpeg
    [tmp_name] =&gt; /Applications/XAMPP/xamppfiles/temp/phpmbI84M
    [error] =&gt; 0
    [size] =&gt; 748459
    [image_width] =&gt; 
)
</code></pre>

<p>No Image Width showing.</p>

<p>how to do this ?</p>