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:
if($_FILES["file"]["type"] == "image/png")
Just swapping the png
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 /
going to be?
Thanks in advance.