Update uploader.php

Added functionality to check size and extension of uploaded file.