i have crreated a module to upload a file.how can i check the type and size of a file to upload.