added a new method to upload.php method checks for maximum ammount of uploaded files