Hi experts,

As the question above, I want to limit video file size when user upload to under e.g. 5 Mb or not longer than 5 minutes. How can I do that.
This is the code that I use. I just don't know how to calculate the file size and it's not effective.
Code:
if ((($_FILES["video"]["type"] == "video/mp4")
	|| ($_FILES["video"]["type"] == "video/ogg"))
	&& ($_FILES["video"]["size"] < 200000000000000000)) {
}
Thanks