Uploading Not Working
<p>i have an online application form. i have provided two upload options in the form, one is for uploading image and another is for uploading document. </p>

<p>But the problem is that the uploading is not working, though i see no error in my code.</p>

<p>Anyone Please help.</p>

<p>here is my php...</p>

<pre><code>if(isset($_POST['submit']))
{

    //Get the uploaded file information
    $name_of_resume_file = basename($_FILES['resume_file']['name']);
    $name_of_image_file =  basename($_FILES['image_file']['name']);


    //get the file extension of the file
    $type_of_resume_file = substr(
                             $name_of_resume_file, 
                             strrpos($name_of_resume_file, '.') + 1
                           );
    $type_of_image_file  = substr(
                             $name_of_image_file, 
                             strrpos($name_of_image_file, '.') + 1
                           );

    $size_of_resume_file = $_FILES["resume_file"]["size"]/1024;
    $size_of_image_file  = $_FILES["image_file"]["size"]/1024;

 //send the email 
{

    //copy the temp. uploaded file to uploads folder
    $path_of_resume_file = $uploads_folder . $name_of_resume_file;
    $path_of_image_file = $uploads_folder . $name_of_image_file;

    $tmp_path = $_FILES["resume_file"]["tmp_name"];
    $tmp_path = $_FILES["image_file"]["tmp_name"];

    $message-&gt;addAttachment($path_of_resume_file);
    $message-&gt;addAttachment($path_of_image_file);
</code></pre>
