How to test wether uploaded file is an epub file?
<p>Hey so this is a very simple question, but one I just can't find the answer for.
I know this is how you test wether the file you uploaded is indeed an image file:</p>

<pre><code>if($_FILES["file"]["type"] == "image/png")
</code></pre>

<p>Just swapping the <code>png</code> with wichever file extension you accept.
I just want to know how do I use this statement to test for a file that is an .epub file? What is the first part before the <code>/</code> going to be?</p>

<p>Thanks in advance.</p>
