Upload file. After uploading will be save in the place where i have stated
<p>I would like to upload a docx to this location "C:\XAMMP\htdocs\FYP3\uploads/" 
Below are my codes for uploading the file. For now, after i click on upload, i cannot even find my file in the given address. Not sure what the error is. Thanks in advance:)</p>

<pre><code>if(isset($_FILES['file']))
        {
            $file=$_FILES['file'];


            $file_name=$file['name'];
            $file_tmp = $file['tmp_name'];
            $file_size = $file['size'];
            $file_error = $file['error'];

            $file_ext = explode('.',$file_name);
            $file_ext = strtolower(end($file_ext));

            $allowed=array('docx', 'jpg');

            if(in_array($file_ext, $allowed))
            {
                if($file_error === 0)
                {
                    if($file_size &lt;= 2097152)
                    {
                        $file_name_new = uniqid('', true) . '.' . $file_ext;
                        $file_destination = "C:\XAMMP\htdocs\FYP3\uploads/" . $file_name_new;

                        if(move_uploaded_file($file_tmp, $file_destination))
                        {
                            echo $file_destination;
                        }



                    }
                }
            }


        }
</code></pre>

<p>Below is my form code:)</p>

<pre><code>&lt;form action="homepage.php" method="post" enctype="multipart/form-data"&gt;
        &lt;input type="file" name="file"&gt;
        &lt;input type="submit" value="upload"&gt;


    &lt;/form&gt;
</code></pre>