PHP WMV file upload failed
<p>I'm doing a test with PHP file upload but seems like my script isn't allowing me to upload WMV.</p>

<p>Here is the PHP script that I have</p>

<pre><code>&lt;?php
$target_path = "uploads/";

$target_path = $target_path . basename( $_FILES['uploadedfile']['name']);

if(move_uploaded_file($_FILES['uploadedfile']['tmp_name'], $target_path)) {
    echo "The file ".  basename( $_FILES['uploadedfile']['name']).
    " has been uploaded";
} else{
    echo "There was an error uploading the file, please try again!";
}
?&gt;
</code></pre>

<p>Here is the HTML script</p>

<pre><code>&lt;form enctype="multipart/form-data" action="uploader.php" method="POST"&gt;
&lt;input type="hidden" name="MAX_FILE_SIZE" value="100000000" /&gt;
Choose a file to upload: &lt;input name="uploadedfile" type="file" /&gt;&lt;br /&gt;
&lt;input type="submit" value="Upload File" /&gt;
&lt;/form&gt;
</code></pre>

<p>When I try other formats like jpg, mov it works just fine.<br>
Is there a special setup I need to do for wmv?<br>
I'm using XAMMP on mac</p>

<p>Thanks,<br>
Tee</p>
