Makes constants.php actually define constants. Adds file size validation.