File upload php with file array
<p>i try to upload files into my server also to my database.</p>

<p>However, i cannot upload them.</p>

<p>I can see my two files with below code,</p>

<pre><code>echo $_FILES['file']['name'][0];
echo $_FILES['file']['name'][1];


$fileName = $_FILES['file']['name'][0];
$add = "img01.imgsinemalar.com/images/haber_anasayfa/" . $fileName;

if (move_uploaded_file($_FILES[file_up][tmp_name], $add)) {
    NCore::db('NEWS')-&gt;insertAsArray(array('CONTENT' =&gt; $_POST['TvSpotdesc'], 'ADD_DATE' =&gt; $date, 'TITLE' =&gt; $_POST['newsTitle'],IMAGE_MAIN =&gt; $add))-&gt;execute();
    echo "Haber başarıyla gönderildi.";
} else {
    echo "Failed to upload file Contact Site admin to fix the problem";
}else {
    echo $msg;
}
</code></pre>

<p>But above code does not upload my files, it goes directly to the else statement, why?</p>

<blockquote>
  <p>Failed to upload file Contact Site admin to fix the problem</p>
</blockquote>
