move_uploaded_file not working as it should
<p>I've searched around but I can't find my issue. I have a simple script that uploads a file to the target-folder.</p>

<pre><code>$target = "img/fotos-artikels/";
$target .= basename($_FILES["uploadBron"]["name"]); 
if(move_uploaded_file($_FILES["uploadBron"]["tmpname"], $target)) {
    echo "The file " . basename($_FILES["uploadBron"]["name"]) . " has been uploaded.";
} else {
    echo " Sorry there was a problem";
}
</code></pre>

<p>And this is the form:</p>

<pre><code>&lt;form enctype="multipart/form-data" action="" method="post"&gt;
    &lt;label for="txtBronNaam"&gt;Naam:&lt;/label&gt;
    &lt;input type="text" name="txtBronNaam" id="txtBronNaam" value="" /&gt;&lt;br /&gt;
    &lt;label for="uploadBron"&gt;File:&lt;/label&gt;
    &lt;input type="file" name="uploadBron" id="uploadBron" value="" /&gt;&lt;br /&gt;
    &lt;input type="submit" name="" value="Voeg bron toe" /&gt;
&lt;/form&gt;
</code></pre>

<p>Do I have to enable something in apache maybe?</p>
