client side file extension checking