add specs for uploadFiile method