Added request type. Added filesize validation