Questions with file upload
<p>I am working on something with file upload this might be a stupid question and people might down vote it but i want to understand what I am doing. I am still new to this. Ok when it says <code>$filename=filenameSafe($_FILES['uploadXXXX']['name']);</code> is the where i would out the name of the file that has the http or would it be the folder that the upload goes or the index that has the functions being called. Same as this line </p>

<pre><code>    $fileType=$_FILES["uploadXXXX"]["type"];
    if (in_array($_FILES["uploadXXXX"]["type"],$aryImages)){
        createThumb($fileType,$_FILES['uploadFile']['tmp_name'],$filename,10
</code></pre>

<p>I am getting a little bit confused. Same with I have a database name tblFile but I am not to sure where to put that at either.  This is the other line of code</p>

<pre><code>elseif (in_array($_FILES["uploadFile"]["type"],$aryDocs)){
    move_uploaded_file($_FILES['uploadFile']['tmp_name'],
"/home/valerie2/public_html/elinkswap/YOURFULLPATH/".$filename);

$aryColumns=array("sessionID"=&gt;$curSess,"fileName"=&gt;$filename,"fileType"=&gt;$fileType,"thumbFileName"=&gt;$thumbFilename,"dateCreated"=&gt;date('Y-m-d H:i:s'));
        dbInsert($filename,$aryColumns,$_FILES["uploadXXXX"]["type"]);
    }
</code></pre>

<p>Can someone might be able to help me understand this so I will not be so confused with it.Thank for everyone who reads this.</p>
