HI! How do i check if the users are trying to upload bigger than 2mb files? I would like to deny that and put an error message to the user who is trying to do that.
I know it is something like this, but what shall i change the 50000 to to become 2mb?
if ($_FILES['imagefile']['size'] > 50000 )
{
die ("ERROR: Large File Size");
}